Class MorfologikCatalanSpellerRule
java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.spelling.SpellingCheckRule
org.languagetool.rules.spelling.morfologik.MorfologikSpellerRule
org.languagetool.rules.ca.MorfologikCatalanSpellerRule
public final class MorfologikCatalanSpellerRule
extends org.languagetool.rules.spelling.morfologik.MorfologikSpellerRule
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Patternprivate static final Patternprivate static final Patternprivate static final Patternprivate Stringprivate static final Patternprivate static final Patternprivate static final Patternprivate static final Patternprivate static final Patternprivate static final Stringprivate CatalanTaggerprivate static final Patternprivate static final PatternFields inherited from class org.languagetool.rules.spelling.morfologik.MorfologikSpellerRule
conversionLocale, speller1, speller2, speller3Fields inherited from class org.languagetool.rules.spelling.SpellingCheckRule
ignoreWordsWithLength, language, languageModel, LANGUAGETOOL, LANGUAGETOOLER, wordListLoaderFields inherited from class org.languagetool.rules.Rule
messages -
Constructor Summary
ConstructorsConstructorDescriptionMorfologikCatalanSpellerRule(ResourceBundle messages, org.languagetool.Language language, org.languagetool.UserConfig userConfig, List<org.languagetool.Language> altLanguages) -
Method Summary
Modifier and TypeMethodDescriptionprivate StringfindSuggestion(String suggestion, String word, Pattern wordPattern, Pattern postagPattern, int suggestionPosition, String separator) getAdditionalTopSuggestions(List<String> suggestions, String word) getId()private booleanmatchPostagRegexp(org.languagetool.AnalyzedTokenReadings aToken, Pattern pattern) Match POS tag with regular expressionorderSuggestions(List<String> suggestions, String word) booleanMethods inherited from class org.languagetool.rules.spelling.morfologik.MorfologikSpellerRule
getDescription, getFrequency, getRuleMatches, ignoreWord, isMisspelled, isMisspelled, isSurrogatePairCombination, match, setCheckCompound, setCompoundRegex, setIgnoreTaggedWords, setLocale, tokenizingPatternMethods 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, ignoreToken, ignoreWord, init, 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
-
Field Details
-
dictFilename
-
SPELLING_FILE
- See Also:
-
PARTICULA_INICIAL
-
PREFIX_AMB_ESPAI
-
APOSTROF_INICI_VERBS
-
APOSTROF_INICI_NOM_SING
-
APOSTROF_INICI_NOM_PLURAL
-
APOSTROF_FINAL
-
GUIONET_FINAL
-
VERB_INDSUBJ
-
NOM_SING
-
NOM_PLURAL
-
VERB_INFGERIMP
-
tagger
-
-
Constructor Details
-
MorfologikCatalanSpellerRule
public MorfologikCatalanSpellerRule(ResourceBundle messages, org.languagetool.Language language, org.languagetool.UserConfig userConfig, List<org.languagetool.Language> altLanguages) throws IOException - Throws:
IOException
-
-
Method Details
-
getFileName
- Specified by:
getFileNamein classorg.languagetool.rules.spelling.morfologik.MorfologikSpellerRule
-
getSpellingFileName
- Overrides:
getSpellingFileNamein classorg.languagetool.rules.spelling.SpellingCheckRule
-
getId
- Specified by:
getIdin classorg.languagetool.rules.spelling.morfologik.MorfologikSpellerRule
-
useInOffice
public boolean useInOffice()- Overrides:
useInOfficein classorg.languagetool.rules.Rule
-
orderSuggestions
-
getAdditionalTopSuggestions
protected List<String> getAdditionalTopSuggestions(List<String> suggestions, String word) throws IOException - Overrides:
getAdditionalTopSuggestionsin classorg.languagetool.rules.spelling.SpellingCheckRule- Throws:
IOException
-
findSuggestion
private String findSuggestion(String suggestion, String word, Pattern wordPattern, Pattern postagPattern, int suggestionPosition, String separator) throws IOException - Throws:
IOException
-
matchPostagRegexp
Match POS tag with regular expression
-