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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file gender_extractor-0.1.3.tar.gz.

File metadata

  • Download URL: gender_extractor-0.1.3.tar.gz
  • Upload date:
  • Size: 2.4 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.9

File hashes

Hashes for gender_extractor-0.1.3.tar.gz
Algorithm Hash digest
SHA256 1d3d100c29abfd49098efe58fa86d0f013aafc483bd65928cd0c338320dc58b4
MD5 a0e7365101216e85e17c4565ba918e53
BLAKE2b-256 00c69fd70cb06bfffd988da7da1f7399bc5ecd74002ace891a9826f16ea57cea

See more details on using hashes here.

File details

Details for the file gender_extractor-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: gender_extractor-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 2.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.9

File hashes

Hashes for gender_extractor-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 4c80e0070f9bc4b673b09ec1e0ba3975bbf9863484148d986e14dd981367982a
MD5 2cb48d53645f4e7f674e79c6e40bdce1
BLAKE2b-256 405c58ae8103f4d96582feb393517db97702e785a6656c9d88acaa3b76fd8a47

See more details on using hashes here.

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