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