Skip to content

A simple python library to take first names and return their gender using the genderize.io API.

License

Notifications You must be signed in to change notification settings

yjkogan/gender.py

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#gender.py

A simple library to take first names and return their gender using the genderize.io API.

##Usage

>>> getGenders(["Brian","Apple","Jessica","Zaeem","NotAName"])
[(u'male', u'1.00', 483), (u'female', u'0.86', 14), (u'female', u'1.00', 787), (u'male', u'1.00', 1), (u'None', u'0.0', 0.0)]

##Output

Output is a list of results form the website, formated to be (name (string), probability (string), amount of documents that support the gender choice (int))

##Requirements

Requires requests to function for HTTP requests.

About

A simple python library to take first names and return their gender using the genderize.io API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%