gender-profil-guesser
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

Made by @Vic-rider

gender-profil-guesser, based on https://genderize.io/ it informs about the gender of a name or email according to the probability that it has to be it.

Install

Install using npm install gender-profil-guesser

Usage

To include gender-profil-guesser, require or import it:

in JavaScript

const { GenderGuesser } = require("gender-profil-guesser");

in TypeScript

import { GenderGuesser } from "gender-profil-guesser";

Create an instance of it

const genderGuesser = new GenderGuesser();

You can get the gender from your name or email.

Ex :

// it would return a promise so you have to get it.

genderGuesser.guessGenderOf(name_or_email)
  .then(response => {
    console.log(response);
  })

You can check if the one who has this attribute is male or female.

Ex :

// it would return a promise so you have to get it.

genderGuesser.isMale(name)
  .then(response => {
    console.log(response);
  })

Package Sidebar

Install

npm i gender-profil-guesser

Weekly Downloads

4

Version

1.0.2

License

ISC

Unpacked Size

7.08 kB

Total Files

9

Last publish

Collaborators

  • vic-rider