Class MorfologikAmericanSpellerRule

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.Map<java.lang.String,​java.lang.String> BRITISH_ENGLISH  
      private static java.lang.String LANGUAGE_SPECIFIC_PLAIN_TEXT_DICT  
      private static java.lang.String RESOURCE_FILENAME  
      static java.lang.String RULE_ID  
      • Fields inherited from class org.languagetool.rules.spelling.morfologik.MorfologikSpellerRule

        conversionLocale, speller1, speller2, speller3
      • Fields inherited from class org.languagetool.rules.spelling.SpellingCheckRule

        ignoreWordsWithLength, language, languageModel, LANGUAGETOOL, LANGUAGETOOLER, wordListLoader
      • Fields inherited from class org.languagetool.rules.Rule

        messages
    • Constructor Summary

      Constructors 
      Constructor Description
      MorfologikAmericanSpellerRule​(java.util.ResourceBundle messages, org.languagetool.Language language)  
      MorfologikAmericanSpellerRule​(java.util.ResourceBundle messages, org.languagetool.Language language, org.languagetool.UserConfig userConfig, java.util.List<org.languagetool.Language> altLanguages)  
      MorfologikAmericanSpellerRule​(java.util.ResourceBundle messages, org.languagetool.Language language, org.languagetool.UserConfig userConfig, java.util.List<org.languagetool.Language> altLanguages, org.languagetool.languagemodel.LanguageModel languageModel)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.util.List<java.lang.String> getAdditionalTopSuggestions​(java.util.List<java.lang.String> suggestions, java.lang.String word)  
      java.lang.String getFileName()  
      java.lang.String getId()  
      java.lang.String getLanguageVariantSpellingFileName()  
      protected VariantInfo isValidInOtherVariant​(java.lang.String word)  
      • Methods inherited from class org.languagetool.rules.spelling.morfologik.MorfologikSpellerRule

        getDescription, getFrequency, ignoreWord, isMisspelled, isMisspelled, isSurrogatePairCombination, match, orderSuggestions, setCheckCompound, setCompoundRegex, setIgnoreTaggedWords, setLocale, tokenizingPattern
      • Methods inherited from class org.languagetool.rules.spelling.SpellingCheckRule

        acceptedInAlternativeLanguage, acceptPhrases, addIgnoreTokens, addIgnoreWords, addProhibitedWords, addSuggestionsToRuleMatch, createWrongSplitMatch, expandLine, filterDupes, filterSuggestions, getAdditionalProhibitFileNames, getAdditionalSpellingFileNames, getAdditionalSuggestions, getAlternativeLangSpellingRules, getAntiPatterns, getIgnoreFileName, getProhibitFileName, getSpellingFileName, ignoreToken, ignoreWord, init, isDictionaryBasedSpellingRule, isEMail, isProhibited, isUrl, reorderSuggestions, setConsiderIgnoreWords, setConvertsCase, startsWithIgnoredWord
      • Methods inherited from class org.languagetool.rules.Rule

        addExamplePair, estimateContextForSureMatch, getCategory, getConfigureText, getCorrectExamples, getDefaultValue, getErrorTriggeringExamples, getIncorrectExamples, getLocQualityIssueType, getMaxConfigurableValue, getMinConfigurableValue, getSentenceWithImmunization, getUrl, hasConfigurableValue, isDefaultOff, isDefaultTempOff, isOfficeDefaultOff, isOfficeDefaultOn, makeAntiPatterns, setCategory, setCorrectExamples, setDefaultOff, setDefaultOn, setDefaultTempOff, setErrorTriggeringExamples, setIncorrectExamples, setLocQualityIssueType, setOfficeDefaultOff, setOfficeDefaultOn, setUrl, supportsLanguage, toRuleMatchArray, useInOffice
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • RESOURCE_FILENAME

        private static final java.lang.String RESOURCE_FILENAME
        See Also:
        Constant Field Values
      • LANGUAGE_SPECIFIC_PLAIN_TEXT_DICT

        private static final java.lang.String LANGUAGE_SPECIFIC_PLAIN_TEXT_DICT
        See Also:
        Constant Field Values
      • BRITISH_ENGLISH

        private static final java.util.Map<java.lang.String,​java.lang.String> BRITISH_ENGLISH
    • Constructor Detail

      • MorfologikAmericanSpellerRule

        public MorfologikAmericanSpellerRule​(java.util.ResourceBundle messages,
                                             org.languagetool.Language language)
                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • MorfologikAmericanSpellerRule

        public MorfologikAmericanSpellerRule​(java.util.ResourceBundle messages,
                                             org.languagetool.Language language,
                                             org.languagetool.UserConfig userConfig,
                                             java.util.List<org.languagetool.Language> altLanguages)
                                      throws java.io.IOException
        Throws:
        java.io.IOException
        Since:
        4.2
      • MorfologikAmericanSpellerRule

        @Experimental
        public MorfologikAmericanSpellerRule​(java.util.ResourceBundle messages,
                                             org.languagetool.Language language,
                                             org.languagetool.UserConfig userConfig,
                                             java.util.List<org.languagetool.Language> altLanguages,
                                             org.languagetool.languagemodel.LanguageModel languageModel)
                                      throws java.io.IOException
        Throws:
        java.io.IOException
        Since:
        4.5
    • Method Detail

      • getFileName

        public java.lang.String getFileName()
        Specified by:
        getFileName in class org.languagetool.rules.spelling.morfologik.MorfologikSpellerRule
      • getId

        public java.lang.String getId()
        Specified by:
        getId in class org.languagetool.rules.spelling.morfologik.MorfologikSpellerRule
      • getLanguageVariantSpellingFileName

        public java.lang.String getLanguageVariantSpellingFileName()
        Overrides:
        getLanguageVariantSpellingFileName in class org.languagetool.rules.spelling.SpellingCheckRule
      • getAdditionalTopSuggestions

        protected java.util.List<java.lang.String> getAdditionalTopSuggestions​(java.util.List<java.lang.String> suggestions,
                                                                               java.lang.String word)
                                                                        throws java.io.IOException
        Overrides:
        getAdditionalTopSuggestions in class AbstractEnglishSpellerRule
        Throws:
        java.io.IOException