Class PostReformPortugueseCompoundRule

java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.AbstractCompoundRule
org.languagetool.rules.pt.PostReformPortugueseCompoundRule

public class PostReformPortugueseCompoundRule extends AbstractCompoundRule
Checks that compounds (if in the list) are not written as separate words.
Since:
2.6
  • Field Details

    • VOWEL

      private static final Pattern VOWEL
    • RS

      private static final Pattern RS
    • compoundData

      private static volatile CompoundRuleData compoundData
  • Constructor Details

  • Method Details

    • 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 AbstractCompoundRule
    • 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 AbstractCompoundRule
    • 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
    • getCompoundRuleData

      public CompoundRuleData getCompoundRuleData()
      Specified by:
      getCompoundRuleData in class AbstractCompoundRule
    • mergeCompound

      public String mergeCompound(String str, boolean uncapitalizeMidWords)
      Overrides:
      mergeCompound in class AbstractCompoundRule