Skip to content

petrsigut/czech_names_vocative

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CzechNamesVocative

Simply returning vocative for first names used in Czech Republic

Installation

Add this line to your application's Gemfile:

gem 'czech_names_vocative'

And then execute:

$ bundle

Or install it yourself as:

$ gem install czech_names_vocative

Usage

"Josef".vocative #=> "Josefe"
"Petr".vocative #=> "Petře"
"NonExistingName".vocative! #=> nil

"Josef".vocative! #=> "Josefe"
"Petr".vocative! #=> "Petře"
"NonExistingName".vocative! #=> "NonExistingName"

Known limitations

There can be names which have different vocative for female and male variant (e.g. Dagmar), gem will simply returns the last one in db.

Database

Thanks for database to validace.cz http://blog.trixi.cz/2012/08/5-pady-vsech-jmen-osob-v-cr-volne-ke-stazeni/

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

returning you vocative version of the given czech name

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages