C# Class NPetrovich.Inflection.CaseInflection

Show file Open project: petrovich/petrovich-net Class Usage Examples

Public Methods

Method Description
CaseInflection ( Gender gender, IRulesLoader rulesLoader = null ) : System
InflectFirstNameTo ( string firstName, Case @case ) : string
InflectLastNameTo ( string lastName, Case @case ) : string
InflectMiddleNameTo ( string middleName, Case @case ) : string

Private Methods

Method Description
Apply ( string name, Case @case, Rule rule ) : string
CaseInflection ( RulesProvider provider, Gender gender ) : System
ExtractTags ( bool>.Dictionary features ) : HashSet
Find ( string name, List rules, bool matchWholeWord, HashSet tags ) : Rule
FindAndApply ( string name, Case @case, RuleSet ruleSet, bool>.Dictionary features ) : string
FindCaseModificator ( Case @case, Rule rule ) : string
FindRulesFor ( string name, RuleSet ruleSet, bool>.Dictionary features ) : Rule
InflectTo ( string name, Case @case, RuleSet ruleSet ) : string
MatchRule ( string name, Rule rule, bool matchWholeWord, HashSet tags ) : bool

Method Details

CaseInflection() public method

public CaseInflection ( Gender gender, IRulesLoader rulesLoader = null ) : System
gender Gender
rulesLoader IRulesLoader
return System

InflectFirstNameTo() public method

public InflectFirstNameTo ( string firstName, Case @case ) : string
firstName string
@case Case
return string

InflectLastNameTo() public method

public InflectLastNameTo ( string lastName, Case @case ) : string
lastName string
@case Case
return string

InflectMiddleNameTo() public method

public InflectMiddleNameTo ( string middleName, Case @case ) : string
middleName string
@case Case
return string