gender-profil-guesser
v1.0.2
Published
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.
Downloads
6
Maintainers
Readme
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);
})