C# Class Framework.Core.Helpers.Inflector

The Inflector class transforms words from one form to another. For example, from singular to plural.
Show file Open project: coreframework/Core-Framework

Public Methods

Method Description
Pluralize ( String word ) : String

Return the plural of a word.

Singularize ( String word ) : String

Return the singular of a word.

Private Methods

Method Description
AddIrregular ( String singular, String plural ) : void
AddIrregularRules ( ) : void
AddPlural ( String rule, String replacement ) : void
AddPluralRules ( ) : void
AddSingular ( String rule, String replacement ) : void
AddSingularRules ( ) : void
AddUncountable ( String word ) : void
AddUncountableRules ( ) : void
ApplyRules ( IEnumerable rules, String word ) : String
Inflector ( ) : System

Initializes static members of the Inflector class.

Method Details

Pluralize() public static method

Return the plural of a word.
public static Pluralize ( String word ) : String
word String The singular form.
return String

Singularize() public static method

Return the singular of a word.
public static Singularize ( String word ) : String
word String The plural form.
return String