♂ or ♀? Genderizer is a library for deciding the gender in the context which can be given names and/or texts. For examples:

>>> from genderizer.genderizer import Genderizer
>>> print Genderizer.detect(firstName='John')
male
>>> print Genderizer.detect(firstName='Marry')
female
>>> print Genderizer.detect(firstName='fikret',
...                         text='galatasary maçı kaçmaz')
male
>>> print Genderizer.detect(firstName='fikret',
...                         text='annemlerle yemek yedik')
female
>>> print Genderizer.detect(text='futbol sevgi')
None
>>> print Genderizer.detect(text='lan bi siktir git')
male

It can also utilize Memcached for speed, use MongoDB, or have custom text classifier.

Genderizer is made by Mustafa Atik and Nejdet Yucesoy, under the MIT License, currently version 0.1.2.3 (2014-04-17).