module ActiveSupport::Inflector

def pluralize(word, locale = :en)

Experimental RBS support (using type sampling data from the type_fusion project).

def pluralize: ((String | Symbol) word, ?Symbol locale) -> String

This signature was generated using 5 samples from 1 application.

pluralize('ley', :es) # => "leyes"
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