Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 498 Bytes

README.MD

File metadata and controls

18 lines (13 loc) · 498 Bytes

simpleGenderPredictor

Download historical baby names from the United States Social Security Administration website and use the frequency to predict the gender given a name (case insensitive). Works with Python 2 and 3.

from simpleGenderPredictor import simpleGenderPredictor
p = simpleGenderPredictor.simpleGenderPredictor()

p.predict_name('john')
('M', 0.9957609676907682)

p.predict_name('no_name')
('Unknown', None)

p.predict_name('Jane')
('F', 0.9969194911455744)