Package org.languagetool.rules.ar
Class ArabicHunspellSpellerRule
java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.spelling.SpellingCheckRule
org.languagetool.rules.spelling.hunspell.HunspellRule
org.languagetool.rules.ar.ArabicHunspellSpellerRule
- Since:
- 4.9
-
Field Summary
FieldsFields inherited from class org.languagetool.rules.spelling.hunspell.HunspellRule
FILE_EXTENSION, hunspell, nonWordPatternFields inherited from class org.languagetool.rules.spelling.SpellingCheckRule
CUSTOM_SPELLING_FILE, GLOBAL_SPELLING_FILE, HIGH_CONFIDENCE, ignoreWordsWithLength, language, languageModel, LANGUAGETOOL, LANGUAGETOOLER, MAX_TOKEN_LENGTH, wordListLoader, wordsToBeIgnored -
Constructor Summary
ConstructorsConstructorDescriptionArabicHunspellSpellerRule(ResourceBundle messages) ArabicHunspellSpellerRule(ResourceBundle messages, UserConfig userConfig) -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetDictFilenameInResources(String langCountry) getId()A string used to identify the rule in e.g.protected booleanignoreWord(String word) Returns true iff the word should be ignored by the spell checker.protected booleanbooleanisMisspelled(String word) protected String[]tokenizeText(String sentence) Methods inherited from class org.languagetool.rules.spelling.hunspell.HunspellRule
acceptSuggestion, ensureInitialized, getActiveChecks, getDescription, getMessage, getSentenceTextWithoutUrlsAndImmunizedTokens, getShortMessage, getSuggestions, init, isInIgnoredSet, isQuotedCompound, match, sortSuggestionByQualityMethods inherited from class org.languagetool.rules.spelling.SpellingCheckRule
acceptPhrases, addIgnoreTokens, addIgnoreWords, addProhibitedWords, addSuggestionsToRuleMatch, createWrongSplitMatch, expandLine, filterDupes, filterNoSuggestWords, filterSuggestions, getAdditionalProhibitFileNames, getAdditionalSpellingFileNames, getAdditionalSuggestions, getAdditionalTopSuggestions, getAntiPatterns, getIgnoreFileName, getLanguageVariantSpellingFileName, getOnlySuggestions, getProhibitFileName, getSpellingFileName, ignorePotentiallyMisspelledWord, ignoreToken, ignoreWord, isDictionaryBasedSpellingRule, isEMail, isIgnoredNoCase, isProhibited, isUrl, setConsiderIgnoreWords, setConvertsCase, startsWithIgnoredWord, tokenizeNewWordsMethods 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:
-
-
Constructor Details
-
ArabicHunspellSpellerRule
-
ArabicHunspellSpellerRule
-
-
Method Details
-
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.- Overrides:
getIdin classHunspellRule
-
getDictFilenameInResources
- Overrides:
getDictFilenameInResourcesin classHunspellRule
-
tokenizeText
- Overrides:
tokenizeTextin classHunspellRule
-
ignoreWord
Description copied from class:SpellingCheckRuleReturns true iff the word should be ignored by the spell checker. If possible, useSpellingCheckRule.ignoreToken(AnalyzedTokenReadings[], int)instead.- Overrides:
ignoreWordin classSpellingCheckRule- Throws:
IOException
-
isMisspelled
- Overrides:
isMisspelledin classHunspellRule
-
isLatinScript
protected boolean isLatinScript()- Overrides:
isLatinScriptin classSpellingCheckRule
-