declension

Inflect string according to current I18n.locale.

Supported Languages

Examples

"Jānis Ozols".inflect(:genitive, as: :male)
=> "Jāņa Ozola"

"automašīna".inflect(:instrumental, as: :female)
=> "ar automašīnu"

"Roberts Egle".inflect(:dative, as: :male)
=> "Robertam Eglem"

"Jana Egle".inflect(:dative, as: :female)
=> "Janai Eglei"

Requirements

Installation

gem install declension

License

MIT License

Bugs and Language Support

See CHANGELOG.md for last changes.

Fork the project. Make your feature addition or bug fix with tests.

Send a pull request. Bonus points for topic branches.

Contacts