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 Provenance Actions
namegender-1.0.2.tar.gz 469.7 kB Without provenance Details for namegender-1.0.2.tar.gz

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

Security for namegender 1.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.2 This release

1 release file No provenance

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