Class BrazilianPortugueseReplaceRule

java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.AbstractSimpleReplaceRule
org.languagetool.rules.pt.BrazilianPortugueseReplaceRule

public class BrazilianPortugueseReplaceRule extends org.languagetool.rules.AbstractSimpleReplaceRule
A rule that matches words or phrases which should not be used and suggests correct ones instead.
Since:
3.8
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    private static final Locale
     
    private static final Map<String,List<String>>
     

    Fields inherited from class org.languagetool.rules.AbstractSimpleReplaceRule

    ignoreTaggedWords

    Fields inherited from class org.languagetool.rules.Rule

    messages
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    final String
     
     
    getMessage(String tokenStr, List<String> replacements)
     
     
    protected Map<String,List<String>>
     
    boolean
     

    Methods inherited from class org.languagetool.rules.AbstractSimpleReplaceRule

    createRuleMatch, findMatches, isCheckLemmas, isTagged, loadFromPath, match, setCheckLemmas, setIgnoreTaggedWords

    Methods inherited from class org.languagetool.rules.Rule

    addExamplePair, estimateContextForSureMatch, getAntiPatterns, getCategory, getConfigureText, getCorrectExamples, getDefaultValue, getErrorTriggeringExamples, getIncorrectExamples, getLocQualityIssueType, getMaxConfigurableValue, getMinConfigurableValue, getSentenceWithImmunization, getUrl, hasConfigurableValue, isDefaultOff, isDefaultTempOff, isDictionaryBasedSpellingRule, isOfficeDefaultOff, isOfficeDefaultOn, makeAntiPatterns, setCategory, setCorrectExamples, setDefaultOff, setDefaultOn, setDefaultTempOff, setErrorTriggeringExamples, setIncorrectExamples, setLocQualityIssueType, setOfficeDefaultOff, setOfficeDefaultOn, setUrl, supportsLanguage, toRuleMatchArray, useInOffice

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • BRAZILIAN_PORTUGUESE_SIMPLE_REPLACE_RULE

      public static final String BRAZILIAN_PORTUGUESE_SIMPLE_REPLACE_RULE
      See Also:
    • wrongWords

      private static final Map<String,List<String>> wrongWords
    • PT_BR_LOCALE

      private static final Locale PT_BR_LOCALE
  • Constructor Details

  • Method Details

    • getWrongWords

      protected Map<String,List<String>> getWrongWords()
      Specified by:
      getWrongWords in class org.languagetool.rules.AbstractSimpleReplaceRule
    • getId

      public final String getId()
      Overrides:
      getId in class org.languagetool.rules.AbstractSimpleReplaceRule
    • getDescription

      public String getDescription()
      Overrides:
      getDescription in class org.languagetool.rules.AbstractSimpleReplaceRule
    • getShort

      public String getShort()
      Overrides:
      getShort in class org.languagetool.rules.AbstractSimpleReplaceRule
    • getMessage

      public String getMessage(String tokenStr, List<String> replacements)
      Overrides:
      getMessage in class org.languagetool.rules.AbstractSimpleReplaceRule
    • isCaseSensitive

      public boolean isCaseSensitive()
      Overrides:
      isCaseSensitive in class org.languagetool.rules.AbstractSimpleReplaceRule
    • getLocale

      public Locale getLocale()
      Overrides:
      getLocale in class org.languagetool.rules.AbstractSimpleReplaceRule