Extract the suspected gender given a name
Project description
Gender extractor
Gender extractor is a tool that tries to guess the gender of a person given a name.
I agree - there are already many projects like that, and most of them are written better (especially considering the fact that I've spent whooping 30 minutes on this one, most of which was focused on fighting the paths), but somehow I couldn't find anything on MIT license. However, if the licensing is not your concern, I invite you to use anything else (for example the greatly done https://github.com/tue-mdse/genderComputer).
So, here it is - a name-to-gender extractor on an MIT license.
Usage
>>> from gender_extractor import GenderExtractor
>>> ext = GenderExtractor()
>>> print(ext.extract_gender("Andrea"))
female
>>> print(ext.extract_gender("Andrea", "Italy"))
mostly male
Database
The database of the names was taken from the https://github.com/tue-mdse/genderComputer project, in which it was published under the Open Database License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for gender_extractor-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bffbc160ec1fd636bb32816cdfb74bfe08289fd6096d8f12d16cf5228c984bdc |
|
MD5 | 3d6174a4a507c50f61baefb09948cafa |
|
BLAKE2b-256 | 2e95367ee14eeabb3334173e9f774b697f685a1c7b54740c098cdb10a841de25 |