node.js - Nodejs check gender by name -
i need check gender name. have list of name in first form, such as: "peter", "anna" , etc. not complicated, application must homecoming probability of gender,than name not in first form, illustration "peter" , "petka" equal. maybe knows solution nodejs?
it fail quite often, , pointed in comments, may offend some. beingness said, there api : genderize.io
it returns results : {"name":"peter","gender":"male","probability":"0.99","count":796}
can localize query more accuracy.
and db 177k names large, it's best bet.
edit :
to take illustration mention, here's returns 'petka' :
{ name: "petka", gender: "female", probability: "1.00", count: 2 }
so guess there's room improvement.
node.js
No comments:
Post a Comment