Class ArabicSimpleReplaceRule


public class ArabicSimpleReplaceRule extends AbstractSimpleReplaceRule2
  • Field Details

  • Constructor Details

    • ArabicSimpleReplaceRule

      public ArabicSimpleReplaceRule(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
    • isDictionaryBasedSpellingRule

      public boolean isDictionaryBasedSpellingRule()
      Description copied from class: Rule
      Whether this is a spelling rule that uses a dictionary. Rules that return true here are basically rules that work like a simple hunspell-like spellchecker: they check words without considering the words' context.
      Overrides:
      isDictionaryBasedSpellingRule in class Rule
    • 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.
    • getLocale

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