Re: Rails'' inflections are messy

Linus Pettersson
Thu, 19 Jul 2012 19:07:47 -0000

At least they should fix the ones that are incorrect...

"Octopus".pluralize should return "Octopuses" and NOT
"Octopi"... :)



Den torsdagen den 19:e juli 2012 kl. 20:23:15 UTC+2 skrev
davidcelis:
>
>
>
> On Thursday, July 19, 2012 11:22:40 AM UTC-7, davidcelis wrote:
>>
>> For anybody who shares my sentiment, until Rails core decides
it''s time
>> to clean up their inflections, I''ve published a gem to provide
more sane
>> default pluralization/singularization rules:
>> https://github.com/davidcelis/inflections
>>
>> Here''s the difference:
>>
>> 4 pluralization rules (down from 21)
>> 5 singularization rules (down from 27)
>> 3 irregularities (down from 7)
>> 1 uncountable (down from 10)
>>
>> Ahhh. Much better.
>>
>>

--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit