Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/miks/declension
https://github.com/miks/declension
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/miks/declension
- Owner: miks
- License: mit
- Created: 2015-04-15T23:32:03.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-04-21T13:30:12.000Z (over 9 years ago)
- Last Synced: 2024-10-06T04:14:02.416Z (3 months ago)
- Language: Ruby
- Size: 160 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.rdoc
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
== declension
{}[http://travis-ci.org/miks/declension]
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
* Miks Miķelsons (link:http://github.com/miks)