Class RSLPStemmerBase.Rule

    • Field Detail

      • suffix

        protected final char[] suffix
      • min

        protected final int min
    • Constructor Detail

      • Rule

        public Rule(String suffix,
                    int min,
                    String replacement)
        Create a rule.
        suffix - suffix to remove
        min - minimum stem length
        replacement - replacement string
    • Method Detail

      • matches

        public boolean matches(char[] s,
                               int len)
        true if the word matches this rule.
      • replace

        public int replace(char[] s,
                           int len)
        new valid length of the string after firing this rule.