Class RSLPStemmerBase.RuleWithSetExceptions

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

protected static class RSLPStemmerBase.RuleWithSetExceptions extends RSLPStemmerBase.Rule
A rule with a set of whole-word exceptions.
  • Field Details

  • Constructor Details

    • RuleWithSetExceptions

      public RuleWithSetExceptions(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.