C# Class Lucene.Net.Analysis.Nl.DutchStemmer

Mostrar archivo Open project: apache/lucenenet Class Usage Examples

Private Properties

Property Type Description
EnEnding bool
GetRIndex int
IsStemmable bool
IsValidEnEnding bool
IsValidSEnding bool
IsVowel bool
ReStoreYandI void
Step1 void
Step2 void
Step3a void
Step3b void
Step4 void
StoreYandI void
Substitute void
UnDouble void
UnDouble void

Public Methods

Method Description
Stem ( string term ) : string

Private Methods

Method Description
EnEnding ( StringBuilder sb ) : bool
GetRIndex ( StringBuilder sb, int start ) : int
IsStemmable ( string term ) : bool

Checks if a term could be stemmed.

IsValidEnEnding ( StringBuilder sb, int index ) : bool
IsValidSEnding ( StringBuilder sb, int index ) : bool
IsVowel ( char c ) : bool
ReStoreYandI ( StringBuilder sb ) : void
Step1 ( StringBuilder sb ) : void
Step2 ( StringBuilder sb ) : void

Delete suffix e if in R1 and preceded by a non-vowel, and then undouble the ending

Step3a ( StringBuilder sb ) : void

Delete "heid"

Step3b ( StringBuilder sb ) : void

A d-suffix, or derivational suffix, enables a new word, often with a different grammatical category, or with a different sense, to be built from another word. Whether a d-suffix can be attached is discovered not from the rules of grammar, but by referring to a dictionary. So in English, ness can be added to certain adjectives to form corresponding nouns (littleness, kindness, foolishness ...) but not to all adjectives (not for example, to big, cruel, wise ...) d-suffixes can be used to change meaning, often in rather exotic ways.

Remove "ing", "end", "ig", "lijk", "baar" and "bar"

Step4 ( StringBuilder sb ) : void

undouble vowel If the words ends CVD, where C is a non-vowel, D is a non-vowel other than I, and V is double a, e, o or u, remove one of the vowels from V (for example, maan -> man, brood -> brod).

StoreYandI ( StringBuilder sb ) : void
Substitute ( StringBuilder buffer ) : void

Substitute ä, ë, ï, ö, ü, á , é, í, ó, ú

UnDouble ( StringBuilder sb ) : void
UnDouble ( StringBuilder sb, int endIndex ) : void

Method Details

Stem() public method

public Stem ( string term ) : string
term string
return string