Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class RSLPStemmerBase.Rule

    A basic rule, with no exceptions.

    Inheritance
    System.Object
    RSLPStemmerBase.Rule
    RSLPStemmerBase.RuleWithSetExceptions
    RSLPStemmerBase.RuleWithSuffixExceptions
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Lucene.Net.Analysis.Pt
    Assembly: Lucene.Net.Analysis.Common.dll
    Syntax
    protected class Rule

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