Skip to content

mathieudutour/genderize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Genderize

Determine the pronoun to use for a first name.

Installation

npm install genderize2

Note: the genderize package returns invalid data, be sure to use genderize2 instead

Usage

const genderize = require('genderize2')

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

About

Determine the pronoun to use for a first name.

Resources

Code of conduct

Stars

Watchers

Forks

Sponsor this project