Class PortugueseBarbarismsRule

java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.AbstractSimpleReplaceRule2
org.languagetool.rules.pt.PortugueseBarbarismsRule

public class PortugueseBarbarismsRule extends org.languagetool.rules.AbstractSimpleReplaceRule2
A rule that matches words which should not be used and suggests correct ones instead. Romanian implementations. Loads the list of words from /ro/replace.txt.
Since:
3.6
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final String
     
    static final String
     
    private static final Locale
     

    Fields inherited from class org.languagetool.rules.Rule

    messages
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    final String
     
    final String
     
     
     
     
     
     

    Methods inherited from class org.languagetool.rules.AbstractSimpleReplaceRule2

    getWrongWords, isCaseSensitive, isException, match

    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

    • getFileName

      public final String getFileName()
      Specified by:
      getFileName in class org.languagetool.rules.AbstractSimpleReplaceRule2
    • getId

      public final String getId()
      Specified by:
      getId in class org.languagetool.rules.AbstractSimpleReplaceRule2
    • getDescription

      public String getDescription()
      Specified by:
      getDescription in class org.languagetool.rules.AbstractSimpleReplaceRule2
    • getShort

      public String getShort()
      Specified by:
      getShort in class org.languagetool.rules.AbstractSimpleReplaceRule2
    • getSuggestion

      public String getSuggestion()
      Specified by:
      getSuggestion in class org.languagetool.rules.AbstractSimpleReplaceRule2
    • getSuggestionsSeparator

      public String getSuggestionsSeparator()
      Specified by:
      getSuggestionsSeparator in class org.languagetool.rules.AbstractSimpleReplaceRule2
    • getUrl

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

      public Locale getLocale()
      Specified by:
      getLocale in class org.languagetool.rules.AbstractSimpleReplaceRule2