inflect icon indicating copy to clipboard operation
inflect copied to clipboard

not working for fitness, wellness, business

Open Cipa opened this issue 9 years ago • 3 comments

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

Thank you

Cipa avatar May 03 '16 23:05 Cipa

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?

mmucklo avatar May 04 '16 01:05 mmucklo

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

Cipa avatar May 04 '16 15:05 Cipa

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

mmucklo avatar May 05 '16 07:05 mmucklo