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.
$ npm install gender