C# Class MicroLite.Mapping.Inflection.EnglishInflectionService

A class for modifying the grammatical category of an English word.
Based upon the example here
Inheritance: IInflectionService
Afficher le fichier Open project: TrevorPilley/MicroLite Class Usage Examples

Méthodes publiques

Méthode Description
AddInvariantWord ( string word ) : void

Adds a word which is considered invariant such as equipment or species.

AddRule ( string searchPattern, string replacementPattern ) : void

Adds (or replaces) the rule.

ToPlural ( string word ) : string

Returns the plural version of the specified singular word or the specified word if there is no plural version.

Method Details

AddInvariantWord() public méthode

Adds a word which is considered invariant such as equipment or species.
public AddInvariantWord ( string word ) : void
word string The invariant word.
Résultat void

AddRule() public méthode

Adds (or replaces) the rule.
public AddRule ( string searchPattern, string replacementPattern ) : void
searchPattern string The pattern to match upon.
replacementPattern string The replacement pattern.
Résultat void

ToPlural() public méthode

Returns the plural version of the specified singular word or the specified word if there is no plural version.
public ToPlural ( string word ) : string
word string The word to be pluralized.
Résultat string