public interface IStemmingRule extends IHasPOS
| Modifier and Type | Method and Description |
|---|---|
String |
apply(String word)
Applies this rule to the given word.
|
String |
apply(String word,
String suffix)
Applies this rule to the given word, adding the specified suffix to the
end of the returned string.
|
String |
getEnding()
Returns the ending for this rule.
|
String |
getSuffix()
Returns the suffix for this rule.
|
Set<String> |
getSuffixIgnoreSet()
Returns the set of suffixes that should be ignored when applying this
stemming rule.
|
String getSuffix()
null,
empty, or all whitespace.String getEnding()
null ,
empty, or all whitespace.Set<String> getSuffixIgnoreSet()
null, but it
may return an empty set. The ignore set will not include the string
returned by getSuffix().null but possibly empty set of suffixes to be
ignoredString apply(String word)
null, but may be empty. If the rule cannot be applied to the
word, this method returns null. This call is equivalent to
calling apply(String, String) with null as the
second argumentword - the word to which the stemming rule should be applied.null if the rule cannot be
applied to this wordString apply(String word, String suffix)
null.word - the word to which the stemming rule should be applied.suffix - a suffix that should be appended to the root once it has been
derived; may be null.null if the rule cannot be
applied to this wordCopyright © 2018. All rights reserved.