Class BulgarianStemmer


  • public class BulgarianStemmer
    extends java.lang.Object
    Light Stemmer for Bulgarian.

    Implements the algorithm described in: Searching Strategies for the Bulgarian Language http://members.unine.ch/jacques.savoy/Papers/BUIR.pdf

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private int removeArticle​(char[] s, int len)
      Mainly remove the definite article
      private int removePlural​(char[] s, int len)  
      int stem​(char[] s, int len)
      Stem an input buffer of Bulgarian text.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BulgarianStemmer

        public BulgarianStemmer()
    • Method Detail

      • stem

        public int stem​(char[] s,
                        int len)
        Stem an input buffer of Bulgarian text.
        Parameters:
        s - input buffer
        len - length of input buffer
        Returns:
        length of input buffer after normalization
      • removeArticle

        private int removeArticle​(char[] s,
                                  int len)
        Mainly remove the definite article
        Parameters:
        s - input buffer
        len - length of input buffer
        Returns:
        new stemmed length
      • removePlural

        private int removePlural​(char[] s,
                                 int len)