Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Plural to Singular and vice-versa
Message
From
09/01/2007 18:07:25
 
 
To
09/01/2007 17:08:14
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01183997
Message ID:
01184016
Views:
18
Simple solution:

If last character = 's'
Add 'es'
else
Add 's'
Endif

>Hey there!
>
>Does anybody know where I can find some code that takes a English word in singular form and returns the plural, and vice-versa?
>
>I'm not looking for anything bulletproof... it just has to cover the simple/medium scenarios (I'm not worrying about things like mouse/mice or child/children, for instance).
>
>TIA
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform