Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 676 Bytes

README.md

File metadata and controls

23 lines (17 loc) · 676 Bytes

Gender

Originally forked from ankane's guess repository (in ruby).

Statistically determine a person's gender based on his / her name.

var gender = require('gender')
gender.guess('Don Draper')
// => { gender: 'male',
//      confidence: 0.9965635738831615 }
gender.guess('Betty Draper')
// => { gender: 'female',
//      confidence: 0.9992498124531133 }
gender.guess('Mad Men')
// => { gender: 'unknown', confidence: null }

Statistical data obtained from the US Census Bureau, so it works best with American names.

Installation

$ npm install gender