Hey dmarkow,
After a bit of hunting around for the correct file to actually edit
(no, not the English gem, no, not my local gem repo), I think the most
"correct" solution is to alter the singular methods and plural methods
by adding the line with the stars... of course, this would get
overwritten in the next update to merb-core, but uh, I'll submit it as
a ticket in the proper place.
def singular(word)
if result = singular_of[word]
return result.dup
end
result = word.dup
**return result if singular_of.value? result**
singularization_rules.each do |(match, replacement)|
break if result.gsub!(match, replacement)
end
return result
end
def plural(word)
if result = plural_of[word]
return result.dup
end
#return self.dup if /s$/ =~ self # ???
result = word.dup
**return result if plural_of.value? result**
pluralization_rules.each do |(match, replacement)|
break if result.gsub!(match, replacement)
end
return result
end
The file is located at /usr/lib/ruby/gems/1.8/gems/merb-core-0.9.3/lib/
merb-core/vendor/facets/inflect.rb on my Ubuntu box.