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
Hashes for nameBinaryGenderMap-1.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c900152fc8f106eb27ef5737bf87590957619fb390d6566f0aa5f3b4df06f6c |
|
MD5 | a3e53bbe6cecbd20adda6dbc179993d5 |
|
BLAKE2b-256 | ff43f9b255875e41b08ab779385712f314f56266b6e5a840b064fdd19c16b701 |
Hashes for nameBinaryGenderMap-1.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | acd9aea0e77d4eec8fd9bc1f667a3cd071218ebf74a4163379979f001b49e971 |
|
MD5 | b47a2448f07e30cdf7778d4d12d13afa |
|
BLAKE2b-256 | c0206b1e9e06a106cf214e9cb2da7611b8bf34ff39020f924d20381cb4a526ed |