Is .Net Core wrapper for class PluralizationService from System.Data.Entity.Design.PluralizationServices
- Download and build code, include a reference in your code to the project
- From anywhere within your code call the PluralizationProvider as shown below
string word = "buses";
string singleWorld = PluralizationProvider.Singularize(word);
Console.WriteLine(singleWorld);
// outputs: bus
string word = "Company";
string pluralWord = PluralizationProvider.Pluralize(word);
Console.WriteLine(pluralWord);
// outputs: Companies
- Microsoft - Initial work - Microsoft
- Konstantin Anisimoff - adapted for .Net Core - kanisimoff
- Will Blackburn - Extended to provide a Singleton Provider Class and XUnit Tests - Harkole