Using C# to get the plural noun

06Feb

Getting a plural noun for a given string seems to be easy, but I failed to find a C# class to do so. There are several rules which goven how the plural form of a word should be generated, for instance:

Nouns ending in s, z, x, sh, and ch form the plural by adding – es

Nouns ending in – y preceded by a consonant is formed into a plural by changing – y to – ies.

Nouns ending in y preceded by a vowel form their plurals by adding – s. (e.g. boy, boys; day, days)

Most nouns ending in o preceded by a consonant is formed into a plural by adding es

Some nouns ending in f or fe are made plural by changing f or fe to – ves. (e.g. beef, beeves; wife, wives)