Is there any function (VB.NET or C#) that can transform an English word into its singular or to its plural form?
I was thinking of having a database that contains all words in English as well as their plural form but I also think that it is stupid since that will be huge and besides there are rules in English on how to translate a word to its plural form, so why not create a function that does the transformation?
In the
System.Data.Entity.Designdll there is a namespace calledPluralizationServices.System.Data.Entity.Design.PluralizationServices.PluralizationService.CreateService(CultureInfo.GetCultureInfo("en-us"))will give you an object that exposes the self explanatoryPluralize,Singularize,IsPluralandIsSingularmethods.EF uses it to pluralize and singularize table names.