Skip to content

Bemmu/gender-from-name

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

gender-from-name

import gender
print gender.gender['LEIA'] # prints 'female'
print gender.gender['LUKE'] # prints 'male'

Just a simple dict primarily derived from census bureau data https://web.archive.org/web/20120420112950/http://www.census.gov/genealogy/names/names_files.html I fully recognize there is no right answer as to which gender a name is (or even what "gender" means), but this can still be useful for stats purposes. For most ambiguous names gender is the one which had more people that census thinks belong to that gender, the ones not listed like that are instead tuples of genders in descending order of likelihood.

About

Gender from name in Python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages