public class MorfologikPortugueseSpellerRule extends MorfologikSpellerRule
conversionLocale, globalConfig, motherTongue, speller1, speller2, speller3CUSTOM_SPELLING_FILE, GLOBAL_SPELLING_FILE, HIGH_CONFIDENCE, ignoreWordsWithLength, language, languageModel, LANGUAGETOOL, LANGUAGETOOLER, MAX_TOKEN_LENGTH, wordListLoader, wordsToBeIgnored| Constructor and Description |
|---|
MorfologikPortugueseSpellerRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
dialectAlternative(String word) |
protected List<SuggestedReplacement> |
filterNoSuggestWords(List<SuggestedReplacement> suggestedReplacements) |
static Set<String> |
getAbbreviations() |
List<String> |
getAdditionalSpellingFileNames() |
protected List<SuggestedReplacement> |
getAdditionalTopSuggestions(List<SuggestedReplacement> suggestions,
String word) |
static Set<String> |
getDoNotSuggestWords() |
String |
getFileName() |
String |
getId() |
protected String |
getIdForDialectIssue() |
String |
getIgnoreFileName() |
String |
getProhibitFileName() |
List<RuleMatch> |
getRuleMatches(String word,
int startPos,
AnalyzedSentence sentence,
List<RuleMatch> ruleMatchesSoFar,
int idx,
AnalyzedTokenReadings[] tokens) |
static Set<String> |
getWordSetFromResources(String filepath) |
protected boolean |
isAbbreviation(String word) |
addHyphenSuggestions, getDescription, getSpellingSuggestions, getTranslator, ignoreWord, isMisspelled, isMisspelled, match, orderSuggestions, setCheckCompound, setCompoundRegex, setIgnoreTaggedWords, setLocale, tokenizingPatternacceptPhrases, addIgnoreTokens, addIgnoreWords, addProhibitedWords, addSuggestionsToRuleMatch, createWrongSplitMatch, expandLine, filterDupes, filterSuggestions, getAdditionalProhibitFileNames, getAdditionalSuggestions, getAntiPatterns, getLanguageVariantSpellingFileName, getOnlySuggestions, getSpellingFileName, ignorePotentiallyMisspelledWord, ignoreToken, ignoreWord, init, isDictionaryBasedSpellingRule, isEMail, isIgnoredNoCase, isInIgnoredSet, isLatinScript, isProhibited, isUrl, setConsiderIgnoreWords, setConvertsCase, startsWithIgnoredWord, tokenizeNewWordsaddExamplePair, 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, useInOfficepublic MorfologikPortugueseSpellerRule(ResourceBundle messages, Language language, UserConfig userConfig, List<Language> altLanguages) throws IOException
IOExceptionpublic String getFileName()
getFileName in class MorfologikSpellerRulepublic String getIgnoreFileName()
getIgnoreFileName in class SpellingCheckRulepublic String getProhibitFileName()
getProhibitFileName in class SpellingCheckRulepublic String getId()
getId in class MorfologikSpellerRuleprotected String getIdForDialectIssue()
@Nullable protected String dialectAlternative(String word) throws IOException
IOExceptionprotected List<SuggestedReplacement> filterNoSuggestWords(List<SuggestedReplacement> suggestedReplacements)
filterNoSuggestWords in class SpellingCheckRuleprotected List<SuggestedReplacement> getAdditionalTopSuggestions(List<SuggestedReplacement> suggestions, String word) throws IOException
getAdditionalTopSuggestions in class SpellingCheckRuleIOExceptionprotected boolean isAbbreviation(String word)
public List<String> getAdditionalSpellingFileNames()
getAdditionalSpellingFileNames in class SpellingCheckRulepublic List<RuleMatch> getRuleMatches(String word, int startPos, AnalyzedSentence sentence, List<RuleMatch> ruleMatchesSoFar, int idx, AnalyzedTokenReadings[] tokens) throws IOException
getRuleMatches in class MorfologikSpellerRuleIOException