C# Class FileScanner.Preprocessing.Normalizer

Mostrar archivo Open project: kzemek/FileScanner Class Usage Examples

Public Methods

Method Description
GetBasicForm ( String phrase ) : String

Finds the basic form for the given word. For example, returns a singular nominative form if a noun is given.

RemovePolishCharacters ( String phrase ) : String

Returns a string with Polish characters converted to English ones and all letters converted to lower-case.

Private Methods

Method Description
AddMissingE ( StringBuilder mutablePhrase ) : void
GetBasicFormOfPhrase ( String phrase ) : String
GetBasicFormOfSingleWord ( String phrase ) : String
GetNormalizedCharacter ( char c ) : char
RemovePalatization ( StringBuilder mutablePhrase ) : void
ReplaceSuffix ( StringBuilder mutablePhrase, string suffix, string newSuffix ) : void
appendWordToStringBuilder ( StringBuilder builder, String word ) : StringBuilder
isSingleWord ( String phrase ) : bool

Method Details

GetBasicForm() public method

Finds the basic form for the given word. For example, returns a singular nominative form if a noun is given.
public GetBasicForm ( String phrase ) : String
phrase String input word
return String

RemovePolishCharacters() public method

Returns a string with Polish characters converted to English ones and all letters converted to lower-case.
public RemovePolishCharacters ( String phrase ) : String
phrase String input word
return String