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

HunspellStemmer uses the affix rules declared in the HunspellDictionary to generate one or more stems for a word. It conforms to the algorithm in the original hunspell algorithm, including recursive suffix stripping.
Mostrar archivo Open project: sisve/Lucene.Net.Analysis.Hunspell Class Usage Examples

Public Methods

Method Description
ApplyAffix ( String strippedWord, HunspellAffix affix, Int32 recursionDepth ) : IEnumerable

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

HunspellStemmer ( HunspellDictionary dictionary ) : System

Constructs a new HunspellStemmer which will use the provided HunspellDictionary to create its stems.

Stem ( String word ) : IEnumerable

Find the stem(s) of the provided word.

UniqueStems ( String word ) : IEnumerable

Find the unique stem(s) of the provided word.

Private Methods

Method Description
HasCrossCheckedFlag ( Char flag, Char flags ) : System.Boolean

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

Stem ( String word, Char flags, Int32 recursionDepth ) : IEnumerable

Generates a list of stems for the provided word.

Method Details

ApplyAffix() public method

Applies the affix rule to the given word, producing a list of stems if any are found.
public ApplyAffix ( String strippedWord, HunspellAffix affix, Int32 recursionDepth ) : IEnumerable
strippedWord String Word the affix has been removed and the strip added.
affix HunspellAffix HunspellAffix representing the affix rule itself.
recursionDepth System.Int32 Level of recursion this stemming step is at.
return IEnumerable

HunspellStemmer() public method

Constructs a new HunspellStemmer which will use the provided HunspellDictionary to create its stems.
public HunspellStemmer ( HunspellDictionary dictionary ) : System
dictionary HunspellDictionary HunspellDictionary that will be used to create the stems.
return System

Stem() public method

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

UniqueStems() public method

Find the unique stem(s) of the provided word.
public UniqueStems ( String word ) : IEnumerable
word String Word to find the stems for.
return IEnumerable