Plural

by Andrew Stewart
published March 28, 2013

I don’t like pulling in all of ActiveSupport when all I need to do is pluralize some text. So I pulled out the relevant bits of ActiveSupport into a gem called plural.

How It’s Used

"post".plural
# => "posts"

"octopus".plural
# => "octopi"

"sheep".plural
# => "sheep"

"words".plural
# => "words"

"CamelOctopus".plural
#=> "CamelOctopi"

What It Supports

Plural supports Rubies with 1.9 syntax, and is tested on the following:

Tell Me More

You can grab it from rubygems or check out more about it on github.