Package org.languagetool.rules.ca
Class SimpleReplaceAnglicism
java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.AbstractSimpleReplaceRule2
org.languagetool.rules.ca.SimpleReplaceAnglicism
A rule that matches words which should not be used and suggests correct ones
instead.
Loads the relevant words from rules/ca/replace_anglicism.txt.
- Author:
- Jaume OrtolĂ
-
Nested Class Summary
Nested classes/interfaces inherited from class org.languagetool.rules.AbstractSimpleReplaceRule2
AbstractSimpleReplaceRule2.CaseSensitivy -
Field Summary
Fields inherited from class org.languagetool.rules.AbstractSimpleReplaceRule2
language, subRuleSpecificIds -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal StringgetId()getShort()protected booleanisRuleMatchException(RuleMatch ruleMatch) protected booleanMethods inherited from class org.languagetool.rules.AbstractSimpleReplaceRule2
checkKeyWordsAreKnownToSpeller, checkKeyWordsAreUnknownToSpeller, getCaseSensitivy, getDescription, getFilePaths, getSuggestionsSeparator, getWrongWords, isCheckingCase, isException, isIgnoreShortUppercaseWords, isPunctuationStart, match, separateKeyWordsBySpeller, setIgnoreShortUppercaseWords, setRuleHasSuggestions, 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
-
SimpleReplaceAnglicism
- Throws:
IOException
-
-
Method Details
-
getId
- Specified by:
getIdin classAbstractSimpleReplaceRule2
-
getDescription
- Specified by:
getDescriptionin classAbstractSimpleReplaceRule2
-
getShort
- Specified by:
getShortin classAbstractSimpleReplaceRule2
-
getLocale
- Specified by:
getLocalein classAbstractSimpleReplaceRule2
-
getFileNames
- Specified by:
getFileNamesin classAbstractSimpleReplaceRule2
-
getMessage
- Specified by:
getMessagein classAbstractSimpleReplaceRule2
-
isRuleMatchException
- Overrides:
isRuleMatchExceptionin classAbstractSimpleReplaceRule2
-
isTokenException
- Overrides:
isTokenExceptionin classAbstractSimpleReplaceRule2
-