mmucklo / inflect

Inflector for PHP
Other
41 stars 6 forks source link

not working for fitness, wellness, business #4

Open Cipa opened 8 years ago

Cipa commented 8 years ago

Can there be a rule for these words ending in 'ness'?

Thank you

mmucklo commented 8 years ago

Would this be an "uncountable" rule?

Scratch that as businesses is a real word, but I'm not sure about "fitnesses" and "wellnesses"...

Any comment?

Cipa commented 8 years ago

When I try to get the singular of fitness I get fitnes, business-> busines, wellness-> wellnes The correct result would be not removing the last s.

What I am trying to do is make a search term singular before I query the database. If someone types in businesses or business I want to Inflect::singularize($value) to return the singular of whatever the user put in the search field. So if I put in a singular I should get a singular, if I put in a plural I should get a singular

mmucklo commented 8 years ago

Please see if the fix I just submitted addresses your issue?