Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/acceptable-security/gender.py

A simple python library to take first names and return their gender using the genderize.io API.
https://github.com/acceptable-security/gender.py

api gender genderize library python

Last synced: about 2 months ago
JSON representation

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

Awesome Lists containing this project

README

        

# gender.py

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

## Usage
>>> from gender import getGenders
>>> 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.