malev / gender-detector

Library for guessing a person's gender by their first name.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Library for guessing a person's gender by their first name.

License:GNU General Public License v2.0


Languages

Language:Python 100.0%