A gem for pluralizing words.
Plural should work with any Ruby using the MRI 1.9 syntax, including MRI 2.0.0, JRuby, and Rubinius.
Add this line to your application's Gemfile:
And then execute:
$ bundle install
Or install it yourself as:
$ gem install plural
"post".plural # => "posts" "octopus".plural # => "octopi" "sheep".plural # => "sheep" "words".plural # => "words" "CamelOctopus".plural # => "CamelOctopi"
Want to help out?
First, clone the repo and run the test suite:
git clone git://github.com/stewart/plural.git cd plural bundle rake
The test cases are taken direct from ActiveSupport.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature)
- Commit your changes (
git commit -am 'Add some feature')
- Push to the branch (
git push origin my-new-feature)
- Create new Pull Request