module ActiveSupport::Inflector
def pluralize(word, locale = :en)
pluralize('CamelOctopus') # => "CamelOctopi"
pluralize('words') # => "words"
pluralize('sheep') # => "sheep"
pluralize('octopus') # => "octopi"
pluralize('post') # => "posts"
this parameter is set to :en.
pluralized using rules defined for that language. By default,
If passed an optional +locale+ parameter, the word will be
Returns the plural form of the word in the string.
def pluralize(word, locale = :en) apply_inflections(word, inflections(locale).plurals, locale) end