Gender detector for russian names
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
test
.gitignore
.travis.yml
Gemfile
LICENSE.txt
README.md
Rakefile
russian_sex.gemspec

README.md

RussianSex

Build Status

Detecting gender based on russian first names. Определение пола пользователя по имени.

Installation

Add this line to your application's Gemfile:

gem 'russian_sex'

And then execute:

$ bundle

Or install it yourself as:

$ gem install russian_sex

Usage

detector = RussianSex::Detector.new
detector.detect 'Валера'
# => 'M'

detector.detect 'Мария'
# => 'F'

detector.detect 'Женя'
# => '-'

detector.detect 'ГадяПетровичХренова'
# => 'undefined'

TODO

Добавить морфологический модуль – если не нашлось имя в списке, то определить имя по окончанию.