module String::Inflections
def self.plural(rule, replacement)
Example:
The replacement should always be a string that may include references to the matched data from the rule.
Specifies a new pluralization rule and its replacement. The rule can either be a string or a regular expression.
def self.plural(rule, replacement) @plurals.insert(0, [rule, replacement]) end