Skip to main content

Predict the gender of a name based on statistical data.

Install

pip install namegender

Usage

>>> import namegender
>>> namegender.predict('Otto')
{'name': 'Otto', 'gender': 'male', 'probability': 99.68185288877577, 'samples': 31432}
>>> namegender.predict_list(['Otto', 'Jane'])
[
  {'gender': 'male', 'samples': 31432, 'name': 'Otto', 'probability': 99.68185288877577},
  {'gender': 'female', 'samples': 370379, 'name': 'Jane', 'probability': 99.69382713382778}
]

Sources

Metadata

Release files for namegender 1.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for namegender 1.0.2
File Size Uploaded
namegender-1.0.2.tar.gz 469.7 kB Details

Release files / namegender-1.0.2.tar.gz

Download URL namegender-1.0.2.tar.gz
Size 469.7 kB
Tags Source
SHA-256 checksum
How to use checksums
a25f3d3d363276130ef1316a4214a4f44e73bf7b476a911e42d0847a9eedca16
BLAKE2b-256 checksum
How to use checksums
39db3ac5c9a04306cdbdc372b07e1510a0fcac974324eefb76a2b0fffeab7cdf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

1.0.2 This release

1 release file

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page