These tools and metrics are designed to help AI actors develop and use trustworthy AI systems and applications that respect human rights and are fair, transparent, explainable, robust, secure and safe.
Gender Detection
Description
A node.js module to determine a person’s gender based on his/her first name.
It works also for many languages other than English, supporting international names, using its own data source of 40.000 records that can be extended. This module is able to clean the text, detecting gender from dirty or unclear names.
Installation
$ npm install gender-detection
Example
// Require gender detection module
const gender = require('gender-detection');
let g;
// Use it to detect the gender:
g = gender.detect('Tim Johnson');
// 'male'
g = gender.detect('Holly');
// 'female'
g = gender.detect('GhJGhgj')
// 'unknown'
// It works also with unclean or dirty names:
g = gender.detect('BiLL$...');
// 'male'
g = gender.detect('::Jenni�fer::');
// 'female'
// Extract the first name
const first_name = gender.getFirstName('Mario Bros');
// 'mario'
Unit tests
npm test
About the tool
You can click on the links to see the associated tools
Tool type(s):
Objective(s):
Purpose(s):
Country of origin:
Type of approach:
Usage rights:
License:
Target users:
Required skills:
Programming languages:
Github stars:
- 57
Github forks:
- 9
Use Cases
Would you like to submit a use case for this tool?
If you have used this tool, we would love to know more about your experience.
Add use case