Library for guessing a person's gender by their first name.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
conda.recipe
gender_detector
.binstar.yml
.gitignore
LICENSE
MANIFEST
MANIFEST.in
PKG-INFO
README.rst
setup.py

README.rst

Gender Detector

Gender detector is a Python library for guessing a person's gender by his/her first name. This library is based on [beauvoir](https://github.com/jeremybmerrill/beauvoir) with support for United States, United Kingdom, Argentina and Uruguay.

This is still in beta stages, use with precaution

© 2014 Marcos Vanetta. Available under GPL2 License. See LICENSE.

Datasets

How to use it

Nothing too fancy, just install:

pip install gender-detector

And then:

from gender_detector import GenderDetector
detector = GenderDetector('us') # It can also be ar, uk, uy.
detector.guess('Marcos') # => 'male'

TODO:

  • Add information about statistics
  • Better datasets