Lucene.Net  3.0.3
Lucene.Net is a port of the Lucene search engine library, written in C# and targeted at .NET runtime users.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Pages
Public Member Functions | List of all members
Lucene.Net.Analysis.Hunspell.HunspellStemmer Class Reference

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. More...

Public Member Functions

 HunspellStemmer (HunspellDictionary dictionary)
 Constructs a new HunspellStemmer which will use the provided HunspellDictionary to create its stems.
 
IEnumerable< HunspellStemStem (String word)
 Find the stem(s) of the provided word.
 
IEnumerable< HunspellStemUniqueStems (String word)
 Find the unique stem(s) of the provided word.
 
IEnumerable< HunspellStemApplyAffix (String strippedWord, HunspellAffix affix, Int32 recursionDepth)
 Applies the affix rule to the given word, producing a list of stems if any are found.
 

Detailed Description

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.

<author>Chris Male</author>

Definition at line 30 of file HunspellStemmer.cs.

Constructor & Destructor Documentation

Lucene.Net.Analysis.Hunspell.HunspellStemmer.HunspellStemmer ( HunspellDictionary  dictionary)

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

Parameters
dictionaryHunspellDictionary that will be used to create the stems.

Definition at line 39 of file HunspellStemmer.cs.

Member Function Documentation

IEnumerable<HunspellStem> Lucene.Net.Analysis.Hunspell.HunspellStemmer.ApplyAffix ( String  strippedWord,
HunspellAffix  affix,
Int32  recursionDepth 
)

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

Parameters
strippedWordWord the affix has been removed and the strip added.
affixHunspellAffix representing the affix rule itself.
recursionDepthLevel of recursion this stemming step is at.
Returns
List of stems for the word, or an empty list if none are found.

Definition at line 158 of file HunspellStemmer.cs.

IEnumerable<HunspellStem> Lucene.Net.Analysis.Hunspell.HunspellStemmer.Stem ( String  word)

Find the stem(s) of the provided word.

Parameters
wordWord to find the stems for.
Returns
List of stems for the word.

Definition at line 49 of file HunspellStemmer.cs.

IEnumerable<HunspellStem> Lucene.Net.Analysis.Hunspell.HunspellStemmer.UniqueStems ( String  word)

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

Parameters
wordWord to find the stems for.
Returns
List of stems for the word.

Definition at line 65 of file HunspellStemmer.cs.


The documentation for this class was generated from the following file: