C# Class Lucene.Net.Analysis.Hunspell.Stemmer

Stemmer uses the affix rules declared in the Dictionary to generate one or more stems for a word. It conforms to the algorithm in the original hunspell algorithm, including recursive suffix stripping.
Exibir arquivo Open project: apache/lucenenet Class Usage Examples

Public Methods

Method Description
Stem ( char word, int length ) : IList

Find the stem(s) of the provided word

Stem ( string word ) : IList

Find the stem(s) of the provided word.

Stemmer ( Dictionary dictionary ) : Lucene.Net.Analysis.Util

Constructs a new Stemmer which will use the provided Dictionary to create its stems.

UniqueStems ( char word, int length ) : IList

Find the unique stem(s) of the provided word

Private Methods

Method Description
ApplyAffix ( char strippedWord, int length, int affix, int prefixFlag, int recursionDepth, bool prefix, bool circumfix ) : IList

Applies the affix rule to the given word, producing a list of stems if any are found

CheckCondition ( int condition, char c1, int c1off, int c1len, char c2, int c2off, int c2len ) : bool

checks condition of the concatenation of two strings

HasCrossCheckedFlag ( char flag, char flags, bool matchEmpty ) : bool

Checks if the given flag cross checks with the given array of flags

NewStem ( char buffer, int length ) : CharsRef
Stem ( char word, int length, int previous, int prevFlag, int prefixFlag, int recursionDepth, bool doPrefix, bool doSuffix, bool previousWasPrefix, bool circumfix ) : IList

Generates a list of stems for the provided word

Method Details

Stem() public method

Find the stem(s) of the provided word
public Stem ( char word, int length ) : IList
word char Word to find the stems for
length int
return IList

Stem() public method

Find the stem(s) of the provided word.
public Stem ( string word ) : IList
word string Word to find the stems for
return IList

Stemmer() public method

Constructs a new Stemmer which will use the provided Dictionary to create its stems.
public Stemmer ( Dictionary dictionary ) : Lucene.Net.Analysis.Util
dictionary Dictionary Dictionary that will be used to create the stems
return Lucene.Net.Analysis.Util

UniqueStems() public method

Find the unique stem(s) of the provided word
public UniqueStems ( char word, int length ) : IList
word char Word to find the stems for
length int
return IList