def pluralize(word)
      result = word.to_s.dup

      if word.empty? || inflections.uncountables.include?(result.downcase)
        result
      else
        inflections.plurals.each { |(rule, replacement)| break if result.gsub!(rule, replacement) }
        result
      end
    end
def pluralize(word)
      result = word.to_s.dup

      if word.empty? || inflections.uncountables.include?(result.downcase)
        result
      else
        inflections.plurals.each { |(rule, replacement)| break if result.gsub!(rule, replacement) }
        result
      end
    end
Returns the plural form of the word in the string.

 Examples:
   "post".pluralize             # => "posts"
   "octopus".pluralize          # => "octopi"
   "sheep".pluralize            # => "sheep"
   "words".pluralize            # => "words"
   "CamelOctopus".pluralize     # => "CamelOctopi"