Answers for "detect gender from name"

0

detect gender from name

import gender_guesser.detector as gender
d = gender.Detector()
print(d.get_gender(u"Bob"))
male
print(d.get_gender(u"Sally"))
female
print(d.get_gender(u"Pauley")) # should be androgynous
andy
Posted by: Guest on September-20-2021

Python Answers by Framework

Browse Popular Code Answers by Language