Package org.languagetool.rules.uk
Class SimpleReplaceRule
java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.AbstractSimpleReplaceRule
org.languagetool.rules.uk.SimpleReplaceRule
A rule that matches words which should not be used and suggests correct ones
instead.
Ukrainian implementations. Loads the relevant words from
rules/uk/replace.txt.- Author:
- Andriy Rysin
-
Field Summary
Fields inherited from class org.languagetool.rules.AbstractSimpleReplaceRule
ignoreTaggedWords, subRuleSpecificIds -
Constructor Summary
ConstructorsConstructorDescriptionSimpleReplaceRule(ResourceBundle messages, MorfologikUkrainianSpellerRule morfologikSpellerRule, Language language) -
Method Summary
Modifier and TypeMethodDescriptionfindMatches(AnalyzedTokenReadings tokenReadings, AnalyzedSentence sentence) final StringgetId()getMessage(String tokenStr, List<String> replacements) getShort()booleanprotected booleanisTagged(AnalyzedTokenReadings tokenReadings) Methods inherited from class org.languagetool.rules.AbstractSimpleReplaceRule
createRuleMatch, getLocale, getSynthesizer, isCheckLemmas, isTokenException, loadFromPath, loadFromPath, match, setCheckLemmas, setIgnoreTaggedWords, useSubRuleSpecificIdsMethods inherited from class org.languagetool.rules.Rule
addExamplePair, addTags, addToneTags, cacheAntiPatterns, estimateContextForSureMatch, getAntiPatterns, getCategory, getCorrectExamples, getDistanceTokens, getErrorTriggeringExamples, getFullId, getIncorrectExamples, getLocQualityIssueType, getMinPrevMatches, getPriority, getRuleOptions, getSentenceWithImmunization, getSourceFile, getSubId, getTags, getToneTags, getUrl, hasTag, hasToneTag, isDefaultOff, isDefaultTempOff, isDictionaryBasedSpellingRule, isGoalSpecific, isIncludedInErrorsCorrectedAllAtOnce, 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, useDictionaryBasedFilterForMatches, useInOffice
-
Constructor Details
-
SimpleReplaceRule
public SimpleReplaceRule(ResourceBundle messages, MorfologikUkrainianSpellerRule morfologikSpellerRule, Language language) throws IOException - Throws:
IOException
-
-
Method Details
-
getWrongWords
- Specified by:
getWrongWordsin classAbstractSimpleReplaceRule
-
getId
- Overrides:
getIdin classAbstractSimpleReplaceRule
-
getDescription
- Overrides:
getDescriptionin classAbstractSimpleReplaceRule
-
getShort
- Overrides:
getShortin classAbstractSimpleReplaceRule
-
getMessage
- Overrides:
getMessagein classAbstractSimpleReplaceRule
-
isTagged
- Overrides:
isTaggedin classAbstractSimpleReplaceRule
-
findMatches
protected List<RuleMatch> findMatches(AnalyzedTokenReadings tokenReadings, AnalyzedSentence sentence) throws IOException - Overrides:
findMatchesin classAbstractSimpleReplaceRule- Throws:
IOException
-
isCaseSensitive
public boolean isCaseSensitive()- Overrides:
isCaseSensitivein classAbstractSimpleReplaceRule
-