Package org.languagetool.rules.pt
Class BrazilianToponymFilter
java.lang.Object
org.languagetool.rules.patterns.RegexRuleFilter
org.languagetool.rules.pt.BrazilianToponymFilter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionacceptRuleMatch(RuleMatch match, Map<String, String> arguments, AnalyzedSentence sentence, Matcher matcher) Returns the original rule match or a modified one, ornullif the rule match is filtered out.
-
Field Details
-
map
-
-
Constructor Details
-
BrazilianToponymFilter
public BrazilianToponymFilter()
-
-
Method Details
-
acceptRuleMatch
public RuleMatch acceptRuleMatch(RuleMatch match, Map<String, String> arguments, AnalyzedSentence sentence, Matcher matcher) Description copied from class:RegexRuleFilterReturns the original rule match or a modified one, ornullif the rule match is filtered out.- Specified by:
acceptRuleMatchin classRegexRuleFilter- Parameters:
arguments- the resolved argument from theargsattribute in the XML.- Returns:
nullif this rule match should be removed, or any other RuleMatch (e.g. the one from the arguments) that properly describes the detected error
-