Inflector bug fix in singular() |
[eluser]Unknown[/eluser]
Currently, singular() results in the following: horses -> hors bases -> bas I recommend the following code change in the singular() function: Code: $last3 = substr($str, -3); Those few line changes fix the singular() function.
[eluser]sophistry[/eluser]
welcome to CI CaptSaltyJack - it's always good to come out of the gate with a bug fix! nicely done. but... squashing inflector bugs is like stepping on roaches... if you see one, that just means that there are 500 more in the wall and the one you saw got claustrophobia. i suggest that you look at these threads (one has a wiki page: "inflector" - the regex he uses there is a work of art, it's really worth a peek): http://ellislab.com/forums/viewthread/97116/ http://ellislab.com/forums/viewthread/100997/ http://ellislab.com/forums/viewthread/99938/ cheers.
[eluser]Unknown[/eluser]
Ahh I see I'm not the first to notice this I'll defer to the more comprehensive solutions. Thanks! |
Welcome Guest, Not a member yet? Register Sign In |