C# Класс MicroLite.Mapping.Inflection.EnglishInflectionService

A class for modifying the grammatical category of an English word.
Based upon the example here
Наследование: IInflectionService
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

AddInvariantWord() публичный Метод

Adds a word which is considered invariant such as equipment or species.
public AddInvariantWord ( string word ) : void
word string The invariant word.
Результат void

AddRule() публичный Метод

Adds (or replaces) the rule.
public AddRule ( string searchPattern, string replacementPattern ) : void
searchPattern string The pattern to match upon.
replacementPattern string The replacement pattern.
Результат void

ToPlural() публичный Метод

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.
Результат string