Skip to content

malev/gender-detector

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages