public final class ArabicHunspellSpellerRule extends HunspellRule
Modifier and Type | Field and Description |
---|---|
static String |
RULE_ID |
FILE_EXTENSION, hunspell, nonWordPattern
CUSTOM_SPELLING_FILE, GLOBAL_SPELLING_FILE, HIGH_CONFIDENCE, ignoreWordsWithLength, language, languageModel, LANGUAGETOOL, LANGUAGETOOLER, MAX_TOKEN_LENGTH, wordListLoader, wordsToBeIgnored
Constructor and Description |
---|
ArabicHunspellSpellerRule(ResourceBundle messages) |
ArabicHunspellSpellerRule(ResourceBundle messages,
UserConfig userConfig) |
Modifier and Type | Method and Description |
---|---|
protected String |
getDictFilenameInResources(String langCountry) |
String |
getId()
A string used to identify the rule in e.g. configuration files.
|
protected boolean |
ignoreWord(String word)
Returns true iff the word should be ignored by the spell checker.
|
protected boolean |
isLatinScript() |
boolean |
isMisspelled(String word) |
protected String[] |
tokenizeText(String sentence) |
acceptSuggestion, ensureInitialized, getActiveChecks, getDescription, getSentenceTextWithoutUrlsAndImmunizedTokens, getSuggestions, init, isInIgnoredSet, isQuotedCompound, match, sortSuggestionByQuality
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, tokenizeNewWords
addExamplePair, addTags, addToneTags, cacheAntiPatterns, estimateContextForSureMatch, getCategory, getConfigureText, getCorrectExamples, getDefaultValue, getDistanceTokens, getErrorTriggeringExamples, getFullId, getIncorrectExamples, getLocQualityIssueType, getMaxConfigurableValue, getMinConfigurableValue, getMinPrevMatches, getSentenceWithImmunization, getSourceFile, getSubId, getTags, getToneTags, getUrl, hasConfigurableValue, hasTag, hasToneTag, isDefaultOff, isDefaultTempOff, isGoalSpecific, isOfficeDefaultOff, isOfficeDefaultOn, isPremium, makeAntiPatterns, setCategory, setCorrectExamples, setDefaultOff, setDefaultOn, setDefaultTempOff, setDistanceTokens, setErrorTriggeringExamples, setExamplePair, setGoalSpecific, setIncorrectExamples, setLocQualityIssueType, setMinPrevMatches, setOfficeDefaultOff, setOfficeDefaultOn, setPremium, setTags, setToneTags, setUrl, supportsLanguage, toRuleMatchArray, useInOffice
public static final String RULE_ID
public ArabicHunspellSpellerRule(ResourceBundle messages, UserConfig userConfig)
public ArabicHunspellSpellerRule(ResourceBundle messages)
public String getId()
Rule
A-Z
and the underscore.getId
in class HunspellRule
@NotNull protected String getDictFilenameInResources(String langCountry)
getDictFilenameInResources
in class HunspellRule
protected String[] tokenizeText(String sentence)
tokenizeText
in class HunspellRule
protected boolean ignoreWord(String word) throws IOException
SpellingCheckRule
SpellingCheckRule.ignoreToken(AnalyzedTokenReadings[], int)
instead.ignoreWord
in class SpellingCheckRule
IOException
public boolean isMisspelled(String word)
isMisspelled
in class HunspellRule
protected boolean isLatinScript()
isLatinScript
in class SpellingCheckRule