Package org.apache.lucene.analysis.pt
Class RSLPStemmerBase.RuleWithSuffixExceptions
java.lang.Object
org.apache.lucene.analysis.pt.RSLPStemmerBase.Rule
org.apache.lucene.analysis.pt.RSLPStemmerBase.RuleWithSuffixExceptions
- Enclosing class:
- RSLPStemmerBase
A rule with a set of exceptional suffixes.
-
Field Summary
Fields inherited from class org.apache.lucene.analysis.pt.RSLPStemmerBase.Rule
min, replacement, suffix
-
Constructor Summary
ConstructorDescriptionRuleWithSuffixExceptions
(String suffix, int min, String replacement, String[] exceptions) -
Method Summary
Methods inherited from class org.apache.lucene.analysis.pt.RSLPStemmerBase.Rule
replace
-
Field Details
-
exceptions
protected final char[][] exceptions
-
-
Constructor Details
-
RuleWithSuffixExceptions
-
-
Method Details
-
matches
public boolean matches(char[] s, int len) - Overrides:
matches
in classRSLPStemmerBase.Rule
- Returns:
- true if the word matches this rule.
-