GitHunt
MO

mobitel-ltd/ru-names

Names to gender mapping for names you can encounter in Russia

Names to gender mapping for names you can encounter in Russia and other ex-USSR countries.
Not necessarily a Russian name, any name which happened to be written in Russian Cyrillic.


Names are in lower case; "m" stands for "male" and "f" for "female" (surprise!)

Usage

$ npm install ru-names --save

const names = require('ru-names')
console.log(names['александр']) // "m"
console.log(names['александра']) // "f"

Contributing

Feel free to add missing names. Pull requests are welcomed. At least for now it's actively maintained.

Tests

Please test your changes before submitting a pull request.
From the project directory:

$ npm run test -s

or (simpler and faster)

$ yarn test

(make sure to run npm install or yarn install first)

Languages

JavaScript100.0%
Created June 19, 2017
Updated November 7, 2024