Class PortugueseWeaselWordsRule


public class PortugueseWeaselWordsRule extends AbstractSimpleReplaceRule2
A rule that matches known empty expressions. Portuguese implementation. Loads the list of words from /pt/weaselwords.txt.
Since:
3.9
  • Field Details

  • Constructor Details

    • PortugueseWeaselWordsRule

      public PortugueseWeaselWordsRule(ResourceBundle messages)
  • Method Details

    • getFileNames

      public List<String> getFileNames()
      Specified by:
      getFileNames in class AbstractSimpleReplaceRule2
    • getId

      public String getId()
      Description copied from class: Rule
      A string used to identify the rule in e.g. configuration files. This string is supposed to be unique and to stay the same in all upcoming versions of LanguageTool. It's supposed to contain only the characters A-Z and the underscore.
      Specified by:
      getId in class AbstractSimpleReplaceRule2
    • getDescription

      public String getDescription()
      Description copied from class: Rule
      A short description of the error this rule can detect, usually in the language of the text that is checked.
      Specified by:
      getDescription in class AbstractSimpleReplaceRule2
      Returns:
      A string where $match will be replaced with the matching word.
    • getShort

      public String getShort()
      Specified by:
      getShort in class AbstractSimpleReplaceRule2
    • getMessage

      public String getMessage()
      Specified by:
      getMessage in class AbstractSimpleReplaceRule2
      Returns:
      A string where $match will be replaced with the matching word and $suggestions will be replaced with the alternatives. This is the string shown to the user.
    • getSuggestionsSeparator

      public String getSuggestionsSeparator()
      Overrides:
      getSuggestionsSeparator in class AbstractSimpleReplaceRule2
      Returns:
      the word used to separate multiple suggestions; used only before last suggestion, the rest are comma-separated.
    • getUrl

      public URL getUrl()
      Description copied from class: Rule
      An optional URL describing the rule match in more detail. Typically points to a dictionary or grammar website with explanations and examples. Will return null for rules that have no URL.
      Overrides:
      getUrl in class Rule
    • getLocale

      public Locale getLocale()
      Description copied from class: AbstractSimpleReplaceRule2
      locale used on case-conversion
      Specified by:
      getLocale in class AbstractSimpleReplaceRule2