Class FrenchCompoundAwareHunspellRule
java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.spelling.SpellingCheckRule
org.languagetool.rules.spelling.hunspell.HunspellRule
org.languagetool.rules.spelling.hunspell.CompoundAwareHunspellRule
org.languagetool.rules.fr.FrenchCompoundAwareHunspellRule
public class FrenchCompoundAwareHunspellRule
extends org.languagetool.rules.spelling.hunspell.CompoundAwareHunspellRule
A French spell checker that uses hunspell for checking but Morfologik for suggestions (for performance reasons).
- Since:
- 4.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class -
Field Summary
Fields inherited from class org.languagetool.rules.spelling.hunspell.HunspellRule
FILE_EXTENSION, hunspellDict, needsInit, nonWordPattern, RULE_ID, suggestionsOrdererFields inherited from class org.languagetool.rules.spelling.SpellingCheckRule
ignoreWordsWithLength, language, languageModel, LANGUAGETOOL, LANGUAGETOOLER, wordListLoaderFields inherited from class org.languagetool.rules.Rule
messages -
Constructor Summary
ConstructorsConstructorDescriptionFrenchCompoundAwareHunspellRule(ResourceBundle messages, org.languagetool.Language language, org.languagetool.UserConfig userConfig, List<org.languagetool.Language> altLanguages) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfilterForLanguage(List<String> suggestions) getAdditionalTopSuggestions(List<String> suggestions, String word) getId()private static @Nullable org.languagetool.rules.spelling.morfologik.MorfologikMultiSpellergetSpeller(org.languagetool.Language language, org.languagetool.UserConfig userConfig) Methods inherited from class org.languagetool.rules.spelling.hunspell.CompoundAwareHunspellRule
getCandidates, getCandidates, getFilteredSuggestions, getSuggestions, sortSuggestionByQualityMethods inherited from class org.languagetool.rules.spelling.hunspell.HunspellRule
getActiveChecks, getDescription, getDictFilenameInResources, getSentenceTextWithoutUrlsAndImmunizedTokens, init, isAcceptedWordFromLanguage, isMisspelled, isQuotedCompound, match, tokenizeTextMethods inherited from class org.languagetool.rules.spelling.SpellingCheckRule
acceptedInAlternativeLanguage, acceptPhrases, addIgnoreTokens, addIgnoreWords, addProhibitedWords, addSuggestionsToRuleMatch, createWrongSplitMatch, expandLine, filterDupes, filterSuggestions, getAdditionalProhibitFileNames, getAdditionalSpellingFileNames, getAdditionalSuggestions, getAlternativeLangSpellingRules, getAntiPatterns, getIgnoreFileName, getLanguageVariantSpellingFileName, getProhibitFileName, getSpellingFileName, ignoreToken, ignoreWord, ignoreWord, isDictionaryBasedSpellingRule, isEMail, isProhibited, isUrl, reorderSuggestions, setConsiderIgnoreWords, setConvertsCase, startsWithIgnoredWordMethods 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
-
Constructor Details
-
FrenchCompoundAwareHunspellRule
public FrenchCompoundAwareHunspellRule(ResourceBundle messages, org.languagetool.Language language, org.languagetool.UserConfig userConfig, List<org.languagetool.Language> altLanguages)
-
-
Method Details
-
getId
- Overrides:
getIdin classorg.languagetool.rules.spelling.hunspell.HunspellRule
-
filterForLanguage
-
getSpeller
@Nullable private static @Nullable org.languagetool.rules.spelling.morfologik.MorfologikMultiSpeller getSpeller(org.languagetool.Language language, org.languagetool.UserConfig userConfig) -
getAdditionalTopSuggestions
protected List<String> getAdditionalTopSuggestions(List<String> suggestions, String word) throws IOException - Overrides:
getAdditionalTopSuggestionsin classorg.languagetool.rules.spelling.SpellingCheckRule- Throws:
IOException
-