class String

def singularize


"CamelOctopi".singularize # => "CamelOctopus"
"the blue mailmen".singularize # => "the blue mailman"
"words".singularize # => "word"
"sheep".singularize # => "sheep"
"octopi".singularize # => "octopus"
"posts".singularize # => "post"

Returns the singular form of the word in the string.
#
def singularize
  ActiveSupport::Inflector.singularize(self)
end