Show / Hide Table of Contents

    Class RSLPStemmerBase.Rule

    A basic rule, with no exceptions.

    Inheritance
    System.Object
    RSLPStemmerBase.Rule
    RSLPStemmerBase.RuleWithSetExceptions
    RSLPStemmerBase.RuleWithSuffixExceptions
    Namespace: Lucene.Net.Analysis.Pt
    Assembly: Lucene.Net.Analysis.Common.dll
    Syntax
    protected class Rule : object

    Constructors

    | Improve this Doc View Source

    Rule(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 Source

    m_min

    Declaration
    protected readonly int m_min
    Field Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    m_replacement

    Declaration
    protected readonly char[] m_replacement
    Field Value
    Type Description
    System.Char[]
    | Improve this Doc View Source

    m_suffix

    Declaration
    protected readonly char[] m_suffix
    Field Value
    Type Description
    System.Char[]

    Methods

    | Improve this Doc View Source

    Matches(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.

    | Improve this Doc View Source

    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.

    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)