Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class RSLPStemmerBase.Rule

    A basic rule, with no exceptions.

    Inheritance
    object
    RSLPStemmerBase.Rule
    RSLPStemmerBase.RuleWithSetExceptions
    RSLPStemmerBase.RuleWithSuffixExceptions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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.

    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.