Class RSLPStemmerBase.Rule
A basic rule, with no exceptions.
Inheritance
RSLPStemmerBase.Rule
Inherited Members
Namespace: Lucene.Net.Analysis.Pt
Assembly: Lucene.Net.Analysis.Common.dll
Syntax
protected class RSLPStemmerBase.Rule
Constructors
Rule(string, int, string)
Create a rule.
Declaration
public Rule(string suffix, int min, string replacement)
Parameters
| Type | Name | Description |
|---|---|---|
| string | suffix | suffix to remove |
| int | min | minimum stem length |
| string | replacement | replacement string |
Fields
m_min
A basic rule, with no exceptions.
Declaration
protected readonly int m_min
Field Value
| Type | Description |
|---|---|
| int |
m_replacement
A basic rule, with no exceptions.
Declaration
protected readonly char[] m_replacement
Field Value
| Type | Description |
|---|---|
| char[] |
m_suffix
A basic rule, with no exceptions.
Declaration
protected readonly char[] m_suffix
Field Value
| Type | Description |
|---|---|
| char[] |
Methods
Matches(char[], int)
A basic rule, with no exceptions.
Declaration
public virtual bool Matches(char[] s, int len)
Parameters
| Type | Name | Description |
|---|---|---|
| char[] | s | |
| int | len |
Returns
| Type | Description |
|---|---|
| bool | true if the word matches this rule. |
Replace(char[], int)
A basic rule, with no exceptions.
Declaration
public virtual int Replace(char[] s, int len)
Parameters
| Type | Name | Description |
|---|---|---|
| char[] | s | |
| int | len |
Returns
| Type | Description |
|---|---|
| int | new valid length of the string after firing this rule. |