Project

guess

0.03
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Statistical gender detection for Ruby
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

>= 0
>= 3
 Project Readme

Guess

Statistical gender detection for Ruby

Works with first names

Guess.gender("Don")
# {gender: "male", confidence: 0.9965635738831615}

And full names

Guess.gender("Betty Draper")
# {gender: "female", confidence: 0.9992498124531133}

or

Guess.gender("Draper, Betty")

Occasionally, it just doesn’t know

Guess.gender("Manhattan")
# {gender: "unknown", confidence: nil}

Data obtained from the US Census Bureau, so it works best with American names. The data source does not contain information on non-binary genders.

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: