Gender guesser library for ruby
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.gitignore
README.md
Rakefile
genders.gemspec
specs.watchr

README.md

Gender Guesser

This is a Ruby implementation of the very simple Gender Guesser by Dr. Neal Krawetz.

It is limited in efficacy and quite useful if you're getting anonymous mail from an admirer. Agreeing to meet before analysis of the emails could be disastrous.

Installation

sudo gem install genders

Usage

require 'genders'
analysis = Genders::Formal.analyze("This is a test")
puts analysis.gender
puts analysis.percentage # how much of the text was in the gender's class