plurals / pluralize

Pluralize or singularize any word based on a count
MIT License
2.12k stars 178 forks source link

Plural of the word 'information' when appended to another keyword #161

Closed jpghafary closed 3 years ago

jpghafary commented 3 years ago

When the word "information" is appended to another word "customer_information" for instance, the result of pluralize.plural is customer_informations eventhough information is an uncoutable word. It would be best to keep it as is.

Please note that it is working for other uncountable nouns such as "data".

jpghafary commented 3 years ago

I am closing the issue because I found a way to resolve it.

I simply the below and solved my problem: pluralize.addUncountableRule(/_information$/i); pluralize.addUncountableRule(/-information$/i); pluralize.addUncountableRule(/information$/i);

Thanks