3 ms·
It seems like he deleted my comment from his site's disqus (it's his right) but I rewrote the exact same API in a couple of lines using sexmachine and ruby (I h
by rajington 13y ago
It seems like he deleted my comment from his site's disqus (it's his right) but I rewrote the exact same API in a couple of lines using sexmachine and ruby (I had been meaning to try Sinatra anyway). The source is here:
https://github.com/rajington/genderizer https://github.com/rajington/genderizer
Hosted on heroku's free tier here are some more interesting examples:
Basic:
http://genderizer.herokuapp.com/?name=peter http://genderizer.herokuapp.com/?name=peter
{"peter":"male"}
"Mostly" Response:
http://genderizer.herokuapp.com/?name=Jamie http://genderizer.herokuapp.com/?name=Jamie
{"Jamie":"mostly_female"}
Country (helps with guesses, default USA):
http://genderizer.herokuapp.com/?name=Jamie&country=great_britain http://genderizer.herokuapp.com/?name=Jamie&country=great_br...
{"Jamie":"mostly_male"}