Predict the gender of a name based on statistic data
Project description
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
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
namegender-1.0.2.tar.gz
(469.7 kB
view details)
File details
Details for the file namegender-1.0.2.tar.gz
.
File metadata
- Download URL: namegender-1.0.2.tar.gz
- Upload date:
- Size: 469.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
a25f3d3d363276130ef1316a4214a4f44e73bf7b476a911e42d0847a9eedca16
|
|
MD5 |
2f18f36a07571e377eabb04cd8366cc0
|
|
BLAKE2b-256 |
39db3ac5c9a04306cdbdc372b07e1510a0fcac974324eefb76a2b0fffeab7cdf
|