From names in multiple languages to gender.
Project description
Name2Gender
From names in multiple languages to gender.
Installation
- From PyPi
pip install -U name2gender
or
uv add -U name2gender
- From Github
pip install git+https://github.com/vortezwohl/Name2Gender.git
Quick Start
-
Import SDKs
from name2gender import Name2Gender, Gender
-
Gender recognition based on names
n2g = Name2Gender() print(n2g('吴子豪')) print(n2g('Donald Trump', return_probability=True))
stdout:
Gender.Male (<Gender.Male: 'male'>, 0.9990234375)
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
name2gender-0.0.2a0.tar.gz
(15.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file name2gender-0.0.2a0.tar.gz.
File metadata
- Download URL: name2gender-0.0.2a0.tar.gz
- Upload date:
- Size: 15.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b629826eb236835d8c44ab209c76ab2feae282afc767b10fb85a7cfc8359ad82
|
|
| MD5 |
562e59a7a8f1a8ec746e8a07e131d86c
|
|
| BLAKE2b-256 |
e377cbd2c09ea9a5b1650c75b9305c1e8ddfe386ddd4164de80166208eae2fd1
|
File details
Details for the file name2gender-0.0.2a0-py3-none-any.whl.
File metadata
- Download URL: name2gender-0.0.2a0-py3-none-any.whl
- Upload date:
- Size: 15.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
12e18de2b02512e22dac8b79e05f523319373d0ebb90b63bcb71c8eca6eac4b6
|
|
| MD5 |
b9bd41dc5121164bba43a1f51813533b
|
|
| BLAKE2b-256 |
210746bf288b942bf4bccdab038d4fd6cfcf1cabdc93e5a8bdfea9b4c08bf9bf
|