Guess
Statistical gender detection for Ruby
Guess.gender("Don Draper")
# => {:gender => "male", :confidence => 0.9965635738831615}
Guess.gender("Betty Draper")
# => {:gender => "female", :confidence => 0.9992498124531133}
Guess.gender("Mad Men")
# => {:gender => "unknown", :confidence => nil}
Data obtained from the US Census Bureau, so it works best with American names.
Installation
Add this line to your application’s Gemfile:
gem 'guess'
Contributing
Everyone is encouraged to help improve this project. Here are a few ways you can help:
- Report bugs
- Fix bugs and submit pull requests
- Write, clarify, or fix documentation
- Suggest or add new features