Class BrazilianToponymFilter

java.lang.Object
org.languagetool.rules.patterns.RegexRuleFilter
org.languagetool.rules.pt.BrazilianToponymFilter

public class BrazilianToponymFilter extends RegexRuleFilter
  • Field Details

  • 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: RegexRuleFilter
      Returns the original rule match or a modified one, or null if the rule match is filtered out.
      Specified by:
      acceptRuleMatch in class RegexRuleFilter
      Parameters:
      arguments - the resolved argument from the args attribute in the XML.
      Returns:
      null if this rule match should be removed, or any other RuleMatch (e.g. the one from the arguments) that properly describes the detected error