C# 클래스 MicroLite.Mapping.Inflection.EnglishInflectionService

A class for modifying the grammatical category of an English word.
Based upon the example here
상속: IInflectionService
파일 보기 프로젝트 열기: TrevorPilley/MicroLite 1 사용 예제들

공개 메소드들

메소드 설명
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