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