Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gender_extractor-0.1.3.tar.gz (2.4 MB view hashes)

Uploaded Source

Built Distribution

gender_extractor-0.1.3-py3-none-any.whl (2.5 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page