Package org.languagetool.rules.en
Class MorfologikBritishSpellerRule
java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.spelling.SpellingCheckRule
org.languagetool.rules.spelling.morfologik.MorfologikSpellerRule
org.languagetool.rules.en.AbstractEnglishSpellerRule
org.languagetool.rules.en.MorfologikBritishSpellerRule
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Stringprivate static final Stringstatic final StringFields inherited from class org.languagetool.rules.en.AbstractEnglishSpellerRule
topSuggestions, topSuggestionsIgnoreCaseFields inherited from class org.languagetool.rules.spelling.morfologik.MorfologikSpellerRule
conversionLocale, globalConfig, motherTongue, speller1, speller2, speller3Fields inherited from class org.languagetool.rules.spelling.SpellingCheckRule
CUSTOM_SPELLING_FILE, GLOBAL_SPELLING_FILE, HIGH_CONFIDENCE, ignoreWordsWithLength, language, languageModel, LANGUAGETOOLER, MAX_TOKEN_LENGTH, wordListLoader, wordsToBeIgnored -
Constructor Summary
ConstructorsConstructorDescriptionMorfologikBritishSpellerRule(ResourceBundle messages, Language language, GlobalConfig globalConfig, UserConfig userConfig, List<Language> altLanguages, LanguageModel languageModel, Language motherTongue) MorfologikBritishSpellerRule(ResourceBundle messages, Language language, UserConfig userConfig, List<Language> altLanguages) -
Method Summary
Modifier and TypeMethodDescriptionGet the filename, e.g.,/resource/pl/spelling.dict.getId()A string used to identify the rule in e.g.Get the name of the spelling file for a language variant (e.g., en-US or de-AT), which lists words to be accepted and used for suggestions, even when the spell checker would not accept them.protected VariantInfoisValidInOtherVariant(String word) Methods inherited from class org.languagetool.rules.en.AbstractEnglishSpellerRule
addHyphenSuggestions, filterNoSuggestWords, filterSuggestions, getAdditionalSpellingFileNames, getAdditionalTopSuggestions, getOnlySuggestions, getRuleMatches, getTopSuggestions, getTopSuggestionsIgnoreCase, getTranslator, loadWordlist, match, tokenizeNewWordsMethods inherited from class org.languagetool.rules.spelling.morfologik.MorfologikSpellerRule
getDescription, getSpellingSuggestions, ignoreWord, isMisspelled, isMisspelled, orderSuggestions, setCheckCompound, setCompoundRegex, setIgnoreTaggedWords, setLocale, tokenizingPatternMethods inherited from class org.languagetool.rules.spelling.SpellingCheckRule
acceptPhrases, addIgnoreTokens, addIgnoreWords, addProhibitedWords, addSuggestionsToRuleMatch, createWrongSplitMatch, expandLine, filterDupes, getAdditionalProhibitFileNames, getAdditionalSuggestions, getAntiPatterns, getIgnoreFileName, getProhibitFileName, getSpellingFileName, ignorePotentiallyMisspelledWord, ignoreToken, ignoreWord, init, isDictionaryBasedSpellingRule, isEMail, isIgnoredNoCase, isInIgnoredSet, isLatinScript, isProhibited, isUrl, setConsiderIgnoreWords, setConvertsCase, startsWithIgnoredWordMethods inherited from class org.languagetool.rules.Rule
addExamplePair, addTags, addToneTags, cacheAntiPatterns, estimateContextForSureMatch, getCategory, getCorrectExamples, getDistanceTokens, getErrorTriggeringExamples, getFullId, getIncorrectExamples, getLocQualityIssueType, getMinPrevMatches, getPriority, getRuleOptions, getSentenceWithImmunization, getSourceFile, getSubId, getTags, getToneTags, getUrl, hasTag, hasToneTag, isDefaultOff, isDefaultTempOff, isGoalSpecific, isIncludedInHiddenMatches, isOfficeDefaultOff, isOfficeDefaultOn, isPremium, makeAntiPatterns, setCategory, setCorrectExamples, setDefaultOff, setDefaultOn, setDefaultTempOff, setDistanceTokens, setErrorTriggeringExamples, setExamplePair, setGoalSpecific, setIncludedInHiddenMatches, setIncorrectExamples, setLocQualityIssueType, setMinPrevMatches, setOfficeDefaultOff, setOfficeDefaultOn, setPremium, setPriority, setTags, setToneTags, setUrl, supportsLanguage, toRuleMatchArray, useInOffice
-
Field Details
-
RULE_ID
- See Also:
-
RESOURCE_FILENAME
- See Also:
-
LANGUAGE_SPECIFIC_PLAIN_TEXT_DICT
- See Also:
-
US_ENGLISH
-
-
Constructor Details
-
MorfologikBritishSpellerRule
public MorfologikBritishSpellerRule(ResourceBundle messages, Language language, UserConfig userConfig, List<Language> altLanguages) throws IOException - Throws:
IOException
-
MorfologikBritishSpellerRule
public MorfologikBritishSpellerRule(ResourceBundle messages, Language language, GlobalConfig globalConfig, UserConfig userConfig, List<Language> altLanguages, LanguageModel languageModel, Language motherTongue) throws IOException - Throws:
IOException- Since:
- 4.9
-
-
Method Details
-
isValidInOtherVariant
- Overrides:
isValidInOtherVariantin classAbstractEnglishSpellerRule
-
getFileName
Description copied from class:MorfologikSpellerRuleGet the filename, e.g.,/resource/pl/spelling.dict.- Specified by:
getFileNamein classMorfologikSpellerRule
-
getId
Description copied from class:RuleA 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 charactersA-Zand the underscore.- Specified by:
getIdin classMorfologikSpellerRule
-
getLanguageVariantSpellingFileName
Description copied from class:SpellingCheckRuleGet the name of the spelling file for a language variant (e.g., en-US or de-AT), which lists words to be accepted and used for suggestions, even when the spell checker would not accept them.- Overrides:
getLanguageVariantSpellingFileNamein classSpellingCheckRule
-