Very nice. James Ward came to evangelize Heroku at our local usergroup. Thanks, James! Armed with a better understanding of Heroku, I set out to provide a simple web-service on heroku while at the usergroup post-talk bar visit. So, here it is:
GenderService! Okay. It's a dubious name, but it does something useful. You can hit the webservice and provide a name and it will infer the gender for you. You can make up a name that doesn't even exist and it will do a reasonable job of determining the gender. Give it a shot!
Here are some that I tried: (if you browser behaves strangely, it may be detecting that it's JSON and trying to be helpful)
- /resolve?name=bob
- /resolve?name=pieter
- /resolve?name=henryetta
- /resolve?name=san+juilliana
- /resolve?name=pezra
Edit: I've added a confidence to the response. Clearly it's certain that I'm female:
{"name":"merlyn","male":false,"confidence":0.995}
3 comments:
This is rad! Thanks for posting this. Let me know if you have any Heroku questions.
-James
Interesting idea, but it's getting lots wrong of the first few I tried:
- toni, ritu should be female
- yiannis, yianni, michalis, vangelis should all be male
Hey there,
Yeah. It was fun to work on. My dataset is probably lacking names like the ones you listed and/or can't handle them.
Cheers,
Merlyn
Post a Comment