Skip to content

Latest commit

 

History

History
16 lines (10 loc) · 562 Bytes

README.md

File metadata and controls

16 lines (10 loc) · 562 Bytes

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