Humanizr / Humanizer

Humanizer meets all your .NET needs for manipulating and displaying strings, enums, dates, times, timespans, numbers and quantities
Other
8.52k stars 947 forks source link

Pluralize/Singularize - Process #1495

Closed VagyokC4 closed 3 months ago

VagyokC4 commented 3 months ago

When I Singularize the word "process" I get back "proces" which is incorrect.

hazzik commented 3 months ago

We have test for this word: https://github.com/Humanizr/Humanizer/blob/9dafc05e0425591c4b6e73e6769a55a224c4dcb2/src/Humanizer.Tests/InflectorTests.cs#L161 The test has been there for at least 10 years.

Also, "process" is already singular and trying to make it more singular does not help. If you don't know that the word is singular or plural and want to get a singular word you need to pass inputIsKnownToBePlural: false parameter to the Singularize method.:

"process".Singularize(inputIsKnownToBePlural: false)
hazzik commented 3 months ago

Please check in README: https://github.com/Humanizr/Humanizer?tab=readme-ov-file#singularize