Class HunspellNoSuggestionRule


  • public class HunspellNoSuggestionRule
    extends HunspellRule
    Like HunspellRule, but does not offer suggestions for incorrect words as that is very slow with Hunspell.
    • Constructor Detail

      • HunspellNoSuggestionRule

        public HunspellNoSuggestionRule​(java.util.ResourceBundle messages,
                                        Language language,
                                        UserConfig userConfig,
                                        java.util.List<Language> altLanguages)
    • Method Detail

      • getId

        public java.lang.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 HunspellRule
      • getDescription

        public java.lang.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 HunspellRule
      • getSuggestions

        public java.util.List<java.lang.String> getSuggestions​(java.lang.String word)
                                                        throws java.io.IOException
        Overrides:
        getSuggestions in class HunspellRule
        Throws:
        java.io.IOException