Class RSLPStemmerBase.RuleWithSuffixExceptions

java.lang.Object
org.apache.lucene.analysis.pt.RSLPStemmerBase.Rule
org.apache.lucene.analysis.pt.RSLPStemmerBase.RuleWithSuffixExceptions
Enclosing class:
RSLPStemmerBase

protected static class RSLPStemmerBase.RuleWithSuffixExceptions extends RSLPStemmerBase.Rule
A rule with a set of exceptional suffixes.
  • Field Details

    • exceptions

      protected final char[][] exceptions
  • Constructor Details

    • RuleWithSuffixExceptions

      public RuleWithSuffixExceptions(String suffix, int min, String replacement, String[] exceptions)
  • Method Details

    • matches

      public boolean matches(char[] s, int len)
      Overrides:
      matches in class RSLPStemmerBase.Rule
      Returns:
      true if the word matches this rule.