Get the corresponding binary gender class (i.e., male or female) for an input name.
Project description
nameBinaryGenderMap Package
The nameBinaryGenderMap
package provides a module that can easily be used to find the corresponding binary gender class (i.e., male or female) for an input name. This package uses around ~100k entries of four gender name datasets provided by catalog.data.gov.
How to use the nameBinaryGenderMap
module in python?
- first import the
nameBinaryGenderMap
module as:
>>> import nameBinaryGenderMap as nbgm
- then use the imported
nameBinaryGenderMap
module to check the binary gender assignment for your desired names using thewhats_the_gender()
function as:
>>> nbgm.whats_the_gender(name = "sara")
the binary gender assigned to 'sara' is 'female'
>>> nbgm.whats_the_gender(name = "john")
the binary gender assigned to 'john' is 'male'
Notes:
-
i) The
whats_the_gender()
is not sensitive to character capitalization, e.g.,>>> nbgm.whats_the_gender(name = "jOhN") the binary gender assigned to 'jOhN' is 'male'
-
ii) The
whats_the_gender()
function can work for many non-English names too:-
for instance let's check for two famous boy and girl names in Chinese -> Boy:
Yichen
and Girl:Yinuo
:>>> nbgm.whats_the_gender(name = "Yichen") the binary gender assigned to 'Yichen' is 'male' >>> nbgm.whats_the_gender(name = "Yinuo") the binary gender assigned to 'Yinuo' is 'female'
-
let's also check for two famous boy and girl names in Middle East -> Boy:
Abbas
and Girl:Aaminah
:>>> nbgm.whats_the_gender(name = "Abbas") the binary gender assigned to 'Abbas' is 'male' >>> nbgm.whats_the_gender(name = "Aaminah") the binary gender assigned to 'Aaminah' is 'female'
-
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
Built Distribution
File details
Details for the file nameBinaryGenderMap-1.0.1.tar.gz
.
File metadata
- Download URL: nameBinaryGenderMap-1.0.1.tar.gz
- Upload date:
- Size: 279.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c900152fc8f106eb27ef5737bf87590957619fb390d6566f0aa5f3b4df06f6c |
|
MD5 | a3e53bbe6cecbd20adda6dbc179993d5 |
|
BLAKE2b-256 | ff43f9b255875e41b08ab779385712f314f56266b6e5a840b064fdd19c16b701 |
Provenance
File details
Details for the file nameBinaryGenderMap-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: nameBinaryGenderMap-1.0.1-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.8.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | acd9aea0e77d4eec8fd9bc1f667a3cd071218ebf74a4163379979f001b49e971 |
|
MD5 | b47a2448f07e30cdf7778d4d12d13afa |
|
BLAKE2b-256 | c0206b1e9e06a106cf214e9cb2da7611b8bf34ff39020f924d20381cb4a526ed |