Spanish Singlularize don't work correctly with words which plural ends in 'ces'
Closed this issue · 1 comments
josegomezr commented
For example, the plural of Luz
is luces
. but when you're turning back, it return luc
instead of luz
.
echo $inflector->pluralize('luz') // luces
echo $inflector->singularize('luces') // luc
i've seen a little bit of the code and in the file lib/inflections/es.php
it seems to declare the rules for inflection.
i've added $inflect->singular('/ces$/', 'z');
and it worked for me.
Hope it helps you.
olvlvl commented
Thanks for your input @josegomezr, I've added some rules to the Spanish inflector. I hope it's correct now. Please let me know if it should be improved further.