Class GreekSpecificCaseRule


public class GreekSpecificCaseRule extends AbstractSpecificCaseRule
A rule that matches words which need a specific upper/lowercase spelling.
  • Constructor Details

    • GreekSpecificCaseRule

      public GreekSpecificCaseRule(ResourceBundle messages)
  • Method Details

    • getPhrasesPath

      public String getPhrasesPath()
      Specified by:
      getPhrasesPath in class AbstractSpecificCaseRule
      Returns:
      the path to the txt file that contains the phrases for the rule
    • getInitialCapitalMessage

      public String getInitialCapitalMessage()
      Overrides:
      getInitialCapitalMessage in class AbstractSpecificCaseRule
      Returns:
      the message that will be shown if the words of the wrongly capitalized phrase must begin with capital
    • getOtherCapitalizationMessage

      public String getOtherCapitalizationMessage()
      Overrides:
      getOtherCapitalizationMessage in class AbstractSpecificCaseRule
      Returns:
      the message that will be shown if the wrongly capitalized phrase must not be written with capital initials (another special kind of capitalization)
    • getShortMessage

      public String getShortMessage()
      Overrides:
      getShortMessage in class AbstractSpecificCaseRule
    • getId

      public final 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.
      Overrides:
      getId in class AbstractSpecificCaseRule
    • 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.
      Overrides:
      getDescription in class AbstractSpecificCaseRule