npm install gender-identification
.set(sample_name, gender)
const gender = require("gender-identification")
gender.set("MyName", gender.MALE)
{
"result": "New data added",
"name": "MyName",
"gender": "male"
}
{
"result": "Invalid gender, kindly read the documentation or check the spelling of your input.",
"name": "MyName",
"gender": "null"
}
The only name that recognized by this program is on the first name only like ("Ryann Kim") only Ryann will going to be added.
.get(sample_name)
const gender = require("gender-identification")
gender.set("MyName")
{
"gender": "male",
"id": 1
}
Gender | ID |
---|---|
MALE | 1 |
FEMALE | 0 |
UNISEX | 2 |
Be take note that this program didn't recognized the gender totally thru appearance, but thru names only, if there's a mistake in the program, it might be the registered data. To fix it, kindly overwrite the data you've inserted. Thank you for using this program, I hope it helps.
- Lester Navarra
- John Paul Caigas
- Earl Shine Sawir
- Mart Anthony Salazar
- And Facebook Bot dev community