npm.io
1.0.0 • Published 7 years ago

genderize2

Licence
MIT
Version
1.0.0
Deps
0
Size
6 kB
Vulns
0
Weekly
0

Genderize

Determine the pronoun to use for a first name.

Installation

npm install genderize

Usage

const genderize = require('genderize')

genderize('Peter', (err, pronoun) => {
  if (err) {
    // do something
  }

  // use the pronoun
})

// or use the sync API
const pronoun = genderize.sync('Peter')

// also works with a list of first names
genderize.list(['Peter', 'Anna'], (err, pronouns) => {
  if (err) {
    // do something
  }

  // use the pronouns
})

License

MIT