Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Plural to Singular and vice-versa
Message
De
09/01/2007 18:07:25
 
 
À
09/01/2007 17:08:14
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 2.0
Divers
Thread ID:
01183997
Message ID:
01184016
Vues:
19
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform