Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class SnowballProgram

    This is the rev 502 of the Snowball SVN trunk, but modified: made abstract and introduced abstract method stem to avoid expensive reflection in filter class. refactored StringBuffers to StringBuilder uses char[] as buffer instead of StringBuffer/StringBuilder eq_s,eq_s_b,insert,replace_s take CharSequence like eq_v and eq_v_b reflection calls (Lovins, etc) use EMPTY_ARGS/EMPTY_PARAMS

    Inheritance
    object
    SnowballProgram
    ArmenianStemmer
    BasqueStemmer
    CatalanStemmer
    DanishStemmer
    DutchStemmer
    EnglishStemmer
    FinnishStemmer
    FrenchStemmer
    German2Stemmer
    GermanStemmer
    HungarianStemmer
    IrishStemmer
    ItalianStemmer
    KpStemmer
    LovinsStemmer
    NorwegianStemmer
    PorterStemmer
    PortugueseStemmer
    RomanianStemmer
    RussianStemmer
    SpanishStemmer
    SwedishStemmer
    TurkishStemmer
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Tartarus.Snowball
    Assembly: Lucene.Net.Analysis.Common.dll
    Syntax
    public abstract class SnowballProgram

    Constructors

    SnowballProgram()

    This is the rev 502 of the Snowball SVN trunk, but modified: made abstract and introduced abstract method stem to avoid expensive reflection in filter class. refactored StringBuffers to StringBuilder uses char[] as buffer instead of StringBuffer/StringBuilder eq_s,eq_s_b,insert,replace_s take CharSequence like eq_v and eq_v_b reflection calls (Lovins, etc) use EMPTY_ARGS/EMPTY_PARAMS

    Declaration
    protected SnowballProgram()

    Fields

    m_bra

    This is the rev 502 of the Snowball SVN trunk, but modified: made abstract and introduced abstract method stem to avoid expensive reflection in filter class. refactored StringBuffers to StringBuilder uses char[] as buffer instead of StringBuffer/StringBuilder eq_s,eq_s_b,insert,replace_s take CharSequence like eq_v and eq_v_b reflection calls (Lovins, etc) use EMPTY_ARGS/EMPTY_PARAMS

    Declaration
    protected int m_bra
    Field Value
    Type Description
    int

    m_current

    This is the rev 502 of the Snowball SVN trunk, but modified: made abstract and introduced abstract method stem to avoid expensive reflection in filter class. refactored StringBuffers to StringBuilder uses char[] as buffer instead of StringBuffer/StringBuilder eq_s,eq_s_b,insert,replace_s take CharSequence like eq_v and eq_v_b reflection calls (Lovins, etc) use EMPTY_ARGS/EMPTY_PARAMS

    Declaration
    protected char[] m_current
    Field Value
    Type Description
    char[]

    m_cursor

    This is the rev 502 of the Snowball SVN trunk, but modified: made abstract and introduced abstract method stem to avoid expensive reflection in filter class. refactored StringBuffers to StringBuilder uses char[] as buffer instead of StringBuffer/StringBuilder eq_s,eq_s_b,insert,replace_s take CharSequence like eq_v and eq_v_b reflection calls (Lovins, etc) use EMPTY_ARGS/EMPTY_PARAMS

    Declaration
    protected int m_cursor
    Field Value
    Type Description
    int

    m_ket

    This is the rev 502 of the Snowball SVN trunk, but modified: made abstract and introduced abstract method stem to avoid expensive reflection in filter class. refactored StringBuffers to StringBuilder uses char[] as buffer instead of StringBuffer/StringBuilder eq_s,eq_s_b,insert,replace_s take CharSequence like eq_v and eq_v_b reflection calls (Lovins, etc) use EMPTY_ARGS/EMPTY_PARAMS

    Declaration
    protected int m_ket
    Field Value
    Type Description
    int

    m_limit

    This is the rev 502 of the Snowball SVN trunk, but modified: made abstract and introduced abstract method stem to avoid expensive reflection in filter class. refactored StringBuffers to StringBuilder uses char[] as buffer instead of StringBuffer/StringBuilder eq_s,eq_s_b,insert,replace_s take CharSequence like eq_v and eq_v_b reflection calls (Lovins, etc) use EMPTY_ARGS/EMPTY_PARAMS

    Declaration
    protected int m_limit
    Field Value
    Type Description
    int

    m_limit_backward

    This is the rev 502 of the Snowball SVN trunk, but modified: made abstract and introduced abstract method stem to avoid expensive reflection in filter class. refactored StringBuffers to StringBuilder uses char[] as buffer instead of StringBuffer/StringBuilder eq_s,eq_s_b,insert,replace_s take CharSequence like eq_v and eq_v_b reflection calls (Lovins, etc) use EMPTY_ARGS/EMPTY_PARAMS

    Declaration
    protected int m_limit_backward
    Field Value
    Type Description
    int

    Properties

    Current

    Get the current string.

    Declaration
    public virtual string Current { get; }
    Property Value
    Type Description
    string

    CurrentBuffer

    Get the current buffer containing the stem.

    NOTE: this may be a reference to a different character array than the one originally provided with setCurrent, in the exceptional case that stemming produced a longer intermediate or result string.

    It is necessary to use CurrentBufferLength to determine the valid length of the returned buffer. For example, many words are stemmed simply by subtracting from the length to remove suffixes.
    Declaration
    public virtual char[] CurrentBuffer { get; }
    Property Value
    Type Description
    char[]
    See Also
    CurrentBufferLength

    CurrentBufferLength

    Get the valid length of the character array in CurrentBuffer

    Declaration
    public virtual int CurrentBufferLength { get; }
    Property Value
    Type Description
    int

    Methods

    AssignTo(StringBuilder)

    This is the rev 502 of the Snowball SVN trunk, but modified: made abstract and introduced abstract method stem to avoid expensive reflection in filter class. refactored StringBuffers to StringBuilder uses char[] as buffer instead of StringBuffer/StringBuilder eq_s,eq_s_b,insert,replace_s take CharSequence like eq_v and eq_v_b reflection calls (Lovins, etc) use EMPTY_ARGS/EMPTY_PARAMS

    Declaration
    protected virtual StringBuilder AssignTo(StringBuilder s)
    Parameters
    Type Name Description
    StringBuilder s
    Returns
    Type Description
    StringBuilder

    CopyFrom(SnowballProgram)

    This is the rev 502 of the Snowball SVN trunk, but modified: made abstract and introduced abstract method stem to avoid expensive reflection in filter class. refactored StringBuffers to StringBuilder uses char[] as buffer instead of StringBuffer/StringBuilder eq_s,eq_s_b,insert,replace_s take CharSequence like eq_v and eq_v_b reflection calls (Lovins, etc) use EMPTY_ARGS/EMPTY_PARAMS

    Declaration
    protected virtual void CopyFrom(SnowballProgram other)
    Parameters
    Type Name Description
    SnowballProgram other

    Eq_S(int, string)

    This is the rev 502 of the Snowball SVN trunk, but modified: made abstract and introduced abstract method stem to avoid expensive reflection in filter class. refactored StringBuffers to StringBuilder uses char[] as buffer instead of StringBuffer/StringBuilder eq_s,eq_s_b,insert,replace_s take CharSequence like eq_v and eq_v_b reflection calls (Lovins, etc) use EMPTY_ARGS/EMPTY_PARAMS

    Declaration
    protected virtual bool Eq_S(int s_size, string s)
    Parameters
    Type Name Description
    int s_size
    string s
    Returns
    Type Description
    bool

    Eq_S_B(int, string)

    This is the rev 502 of the Snowball SVN trunk, but modified: made abstract and introduced abstract method stem to avoid expensive reflection in filter class. refactored StringBuffers to StringBuilder uses char[] as buffer instead of StringBuffer/StringBuilder eq_s,eq_s_b,insert,replace_s take CharSequence like eq_v and eq_v_b reflection calls (Lovins, etc) use EMPTY_ARGS/EMPTY_PARAMS

    Declaration
    protected virtual bool Eq_S_B(int s_size, string s)
    Parameters
    Type Name Description
    int s_size
    string s
    Returns
    Type Description
    bool

    Eq_V(string)

    This is the rev 502 of the Snowball SVN trunk, but modified: made abstract and introduced abstract method stem to avoid expensive reflection in filter class. refactored StringBuffers to StringBuilder uses char[] as buffer instead of StringBuffer/StringBuilder eq_s,eq_s_b,insert,replace_s take CharSequence like eq_v and eq_v_b reflection calls (Lovins, etc) use EMPTY_ARGS/EMPTY_PARAMS

    Declaration
    protected virtual bool Eq_V(string s)
    Parameters
    Type Name Description
    string s
    Returns
    Type Description
    bool

    Eq_V_B(string)

    This is the rev 502 of the Snowball SVN trunk, but modified: made abstract and introduced abstract method stem to avoid expensive reflection in filter class. refactored StringBuffers to StringBuilder uses char[] as buffer instead of StringBuffer/StringBuilder eq_s,eq_s_b,insert,replace_s take CharSequence like eq_v and eq_v_b reflection calls (Lovins, etc) use EMPTY_ARGS/EMPTY_PARAMS

    Declaration
    protected virtual bool Eq_V_B(string s)
    Parameters
    Type Name Description
    string s
    Returns
    Type Description
    bool

    FindAmong(Among[], int)

    This is the rev 502 of the Snowball SVN trunk, but modified: made abstract and introduced abstract method stem to avoid expensive reflection in filter class. refactored StringBuffers to StringBuilder uses char[] as buffer instead of StringBuffer/StringBuilder eq_s,eq_s_b,insert,replace_s take CharSequence like eq_v and eq_v_b reflection calls (Lovins, etc) use EMPTY_ARGS/EMPTY_PARAMS

    Declaration
    protected virtual int FindAmong(Among[] v, int v_size)
    Parameters
    Type Name Description
    Among[] v
    int v_size
    Returns
    Type Description
    int

    FindAmongB(Among[], int)

    This is the rev 502 of the Snowball SVN trunk, but modified: made abstract and introduced abstract method stem to avoid expensive reflection in filter class. refactored StringBuffers to StringBuilder uses char[] as buffer instead of StringBuffer/StringBuilder eq_s,eq_s_b,insert,replace_s take CharSequence like eq_v and eq_v_b reflection calls (Lovins, etc) use EMPTY_ARGS/EMPTY_PARAMS

    Declaration
    protected virtual int FindAmongB(Among[] v, int v_size)
    Parameters
    Type Name Description
    Among[] v
    int v_size
    Returns
    Type Description
    int

    InGrouping(char[], int, int)

    This is the rev 502 of the Snowball SVN trunk, but modified: made abstract and introduced abstract method stem to avoid expensive reflection in filter class. refactored StringBuffers to StringBuilder uses char[] as buffer instead of StringBuffer/StringBuilder eq_s,eq_s_b,insert,replace_s take CharSequence like eq_v and eq_v_b reflection calls (Lovins, etc) use EMPTY_ARGS/EMPTY_PARAMS

    Declaration
    protected virtual bool InGrouping(char[] s, int min, int max)
    Parameters
    Type Name Description
    char[] s
    int min
    int max
    Returns
    Type Description
    bool

    InGroupingB(char[], int, int)

    This is the rev 502 of the Snowball SVN trunk, but modified: made abstract and introduced abstract method stem to avoid expensive reflection in filter class. refactored StringBuffers to StringBuilder uses char[] as buffer instead of StringBuffer/StringBuilder eq_s,eq_s_b,insert,replace_s take CharSequence like eq_v and eq_v_b reflection calls (Lovins, etc) use EMPTY_ARGS/EMPTY_PARAMS

    Declaration
    protected virtual bool InGroupingB(char[] s, int min, int max)
    Parameters
    Type Name Description
    char[] s
    int min
    int max
    Returns
    Type Description
    bool

    InRange(int, int)

    This is the rev 502 of the Snowball SVN trunk, but modified: made abstract and introduced abstract method stem to avoid expensive reflection in filter class. refactored StringBuffers to StringBuilder uses char[] as buffer instead of StringBuffer/StringBuilder eq_s,eq_s_b,insert,replace_s take CharSequence like eq_v and eq_v_b reflection calls (Lovins, etc) use EMPTY_ARGS/EMPTY_PARAMS

    Declaration
    protected virtual bool InRange(int min, int max)
    Parameters
    Type Name Description
    int min
    int max
    Returns
    Type Description
    bool

    InRangeB(int, int)

    This is the rev 502 of the Snowball SVN trunk, but modified: made abstract and introduced abstract method stem to avoid expensive reflection in filter class. refactored StringBuffers to StringBuilder uses char[] as buffer instead of StringBuffer/StringBuilder eq_s,eq_s_b,insert,replace_s take CharSequence like eq_v and eq_v_b reflection calls (Lovins, etc) use EMPTY_ARGS/EMPTY_PARAMS

    Declaration
    protected virtual bool InRangeB(int min, int max)
    Parameters
    Type Name Description
    int min
    int max
    Returns
    Type Description
    bool

    Insert(int, int, string)

    This is the rev 502 of the Snowball SVN trunk, but modified: made abstract and introduced abstract method stem to avoid expensive reflection in filter class. refactored StringBuffers to StringBuilder uses char[] as buffer instead of StringBuffer/StringBuilder eq_s,eq_s_b,insert,replace_s take CharSequence like eq_v and eq_v_b reflection calls (Lovins, etc) use EMPTY_ARGS/EMPTY_PARAMS

    Declaration
    protected virtual void Insert(int c_bra, int c_ket, string s)
    Parameters
    Type Name Description
    int c_bra
    int c_ket
    string s

    OutGrouping(char[], int, int)

    This is the rev 502 of the Snowball SVN trunk, but modified: made abstract and introduced abstract method stem to avoid expensive reflection in filter class. refactored StringBuffers to StringBuilder uses char[] as buffer instead of StringBuffer/StringBuilder eq_s,eq_s_b,insert,replace_s take CharSequence like eq_v and eq_v_b reflection calls (Lovins, etc) use EMPTY_ARGS/EMPTY_PARAMS

    Declaration
    protected virtual bool OutGrouping(char[] s, int min, int max)
    Parameters
    Type Name Description
    char[] s
    int min
    int max
    Returns
    Type Description
    bool

    OutGroupingB(char[], int, int)

    This is the rev 502 of the Snowball SVN trunk, but modified: made abstract and introduced abstract method stem to avoid expensive reflection in filter class. refactored StringBuffers to StringBuilder uses char[] as buffer instead of StringBuffer/StringBuilder eq_s,eq_s_b,insert,replace_s take CharSequence like eq_v and eq_v_b reflection calls (Lovins, etc) use EMPTY_ARGS/EMPTY_PARAMS

    Declaration
    protected virtual bool OutGroupingB(char[] s, int min, int max)
    Parameters
    Type Name Description
    char[] s
    int min
    int max
    Returns
    Type Description
    bool

    OutRange(int, int)

    This is the rev 502 of the Snowball SVN trunk, but modified: made abstract and introduced abstract method stem to avoid expensive reflection in filter class. refactored StringBuffers to StringBuilder uses char[] as buffer instead of StringBuffer/StringBuilder eq_s,eq_s_b,insert,replace_s take CharSequence like eq_v and eq_v_b reflection calls (Lovins, etc) use EMPTY_ARGS/EMPTY_PARAMS

    Declaration
    protected virtual bool OutRange(int min, int max)
    Parameters
    Type Name Description
    int min
    int max
    Returns
    Type Description
    bool

    OutRangeB(int, int)

    This is the rev 502 of the Snowball SVN trunk, but modified: made abstract and introduced abstract method stem to avoid expensive reflection in filter class. refactored StringBuffers to StringBuilder uses char[] as buffer instead of StringBuffer/StringBuilder eq_s,eq_s_b,insert,replace_s take CharSequence like eq_v and eq_v_b reflection calls (Lovins, etc) use EMPTY_ARGS/EMPTY_PARAMS

    Declaration
    protected virtual bool OutRangeB(int min, int max)
    Parameters
    Type Name Description
    int min
    int max
    Returns
    Type Description
    bool

    ReplaceS(int, int, string)

    to replace chars between c_bra and c_ket in current by the chars in s.

    Declaration
    protected virtual int ReplaceS(int c_bra, int c_ket, string s)
    Parameters
    Type Name Description
    int c_bra
    int c_ket
    string s
    Returns
    Type Description
    int

    SetCurrent(char[], int)

    Set the current string.

    Declaration
    public virtual void SetCurrent(char[] text, int length)
    Parameters
    Type Name Description
    char[] text

    character array containing input

    int length

    valid length of text.

    SetCurrent(string)

    Set the current string.

    Declaration
    public virtual void SetCurrent(string value)
    Parameters
    Type Name Description
    string value

    SliceCheck()

    This is the rev 502 of the Snowball SVN trunk, but modified: made abstract and introduced abstract method stem to avoid expensive reflection in filter class. refactored StringBuffers to StringBuilder uses char[] as buffer instead of StringBuffer/StringBuilder eq_s,eq_s_b,insert,replace_s take CharSequence like eq_v and eq_v_b reflection calls (Lovins, etc) use EMPTY_ARGS/EMPTY_PARAMS

    Declaration
    protected virtual void SliceCheck()

    SliceDel()

    This is the rev 502 of the Snowball SVN trunk, but modified: made abstract and introduced abstract method stem to avoid expensive reflection in filter class. refactored StringBuffers to StringBuilder uses char[] as buffer instead of StringBuffer/StringBuilder eq_s,eq_s_b,insert,replace_s take CharSequence like eq_v and eq_v_b reflection calls (Lovins, etc) use EMPTY_ARGS/EMPTY_PARAMS

    Declaration
    protected virtual void SliceDel()

    SliceFrom(string)

    This is the rev 502 of the Snowball SVN trunk, but modified: made abstract and introduced abstract method stem to avoid expensive reflection in filter class. refactored StringBuffers to StringBuilder uses char[] as buffer instead of StringBuffer/StringBuilder eq_s,eq_s_b,insert,replace_s take CharSequence like eq_v and eq_v_b reflection calls (Lovins, etc) use EMPTY_ARGS/EMPTY_PARAMS

    Declaration
    protected virtual void SliceFrom(string s)
    Parameters
    Type Name Description
    string s

    SliceTo(StringBuilder)

    Copy the slice into the supplied StringBuilder

    Declaration
    protected virtual StringBuilder SliceTo(StringBuilder s)
    Parameters
    Type Name Description
    StringBuilder s
    Returns
    Type Description
    StringBuilder

    Stem()

    This is the rev 502 of the Snowball SVN trunk, but modified: made abstract and introduced abstract method stem to avoid expensive reflection in filter class. refactored StringBuffers to StringBuilder uses char[] as buffer instead of StringBuffer/StringBuilder eq_s,eq_s_b,insert,replace_s take CharSequence like eq_v and eq_v_b reflection calls (Lovins, etc) use EMPTY_ARGS/EMPTY_PARAMS

    Declaration
    public abstract bool Stem()
    Returns
    Type Description
    bool
    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.