activesupport inflections.rb incorrect singularization of '-ses' to '-sis' words
Reported by David Schruth | August 6th, 2008 @ 12:23 AM
Hi,
I found a bug in active support's inflectinos.rb module.
inflect.singular(/((a)naly|(b)a|(d)iagno|(p)arenthe|(p)rogno|(s)ynop|(t)he)ses$/i, '\1\2sis')
needs to be replaced with
inflect.singular(/(analy|ba|diagno|parenthe|progno|synop|the)ses$/i, '\1sis')
I'm new to ruby and rails but I'm pretty good with regular expressions and the "find -exec grep" command. Consequently, I was able to find and correct the bug in my own instance of inflections.rb
I would have logged the bug directly into track here...
http://dev.rubyonrails.org/brows...
...but i couldn't figure out how.
Thanks,
Dave
Comments and changes to this ticket
-

David Schruth August 8th, 2008 @ 12:49 AM
In case this doesn't get fixed anytime soon. I thought I would post the actual full words so that people searching for this "uninitialized constant" name error might find this page.
==correct plurals== analyses bases diagnoses parentheses prognoses synopses theses ==correct singulars== analysis basis diagnosis parenthesis prognosis synopsis thesis ==incorrect singulars== analyasis babsis diagnodsis parenthepsis prognopsis synopssis thetsis
Please Login or create a free account to add a new comment.
You can update this ticket by sending an email to from your email client. (help)
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
