Class PortugueseReplaceRule

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

public class PortugueseReplaceRule extends org.languagetool.rules.AbstractSimpleReplaceRule
A rule that matches words or phrases which should not be used and suggests correct ones instead.
  • 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, 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

  • 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
    • getUrl

      public URL getUrl()
      Overrides:
      getUrl in class org.languagetool.rules.Rule
    • isCaseSensitive

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

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