0.1.0 • Published 1 year ago
gender-name v0.1.0
Gender Name
A very simple package, but using high level artificial intelligence to predict a person's gender based on their name, this package accepts several pre-trained models that are offered by other packages
How To Use
Using the gender name is very simple, for the first step you need to install the package:
yarn add gender-name
For it to work correctly you need a model, you can check the list of models here in this example we will use the brazil_10k:
yarn add @gender-name/brazil_10k
Now you can preview genres by passing a name and the model you downloaded earlier:
import genderName from "gender-name";
import brazil_10k_model from "@gender-name/brazil_10k";
const result = await genderName("Maria", { model: brazil_10k_model });
console.log(result); // female
List of Models
- brazil_10k - for small applications
- brazil_100 - just for testing