Project

declension

0.0
No commit activity in last 3 years
No release in over 3 years
Apply grammatical cases to words.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0

Runtime

 Project Readme

declension¶ ↑

<img src=“https://secure.travis-ci.org/miks/declension.png?branch=master” />

Inflect string according to current I18n.locale.

Supported Languages¶ ↑

  • Latvian [lv]

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¶ ↑

  • 2.0.0 <= Ruby

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¶ ↑