Package org.languagetool.rules.ca
Class AbstractSimpleReplaceLemmasRule
- java.lang.Object
-
- org.languagetool.rules.Rule
-
- org.languagetool.rules.AbstractSimpleReplaceRule
-
- org.languagetool.rules.ca.AbstractSimpleReplaceLemmasRule
-
- Direct Known Subclasses:
SimpleReplaceDNVColloquialRule
,SimpleReplaceDNVRule
,SimpleReplaceDNVSecondaryRule
public abstract class AbstractSimpleReplaceLemmasRule extends org.languagetool.rules.AbstractSimpleReplaceRule
Adds simple replacement using lemmas
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.Locale
CA_LOCALE
private CatalanSynthesizer
synth
protected java.util.Map<java.lang.String,java.util.List<java.lang.String>>
wrongLemmas
-
Constructor Summary
Constructors Constructor Description AbstractSimpleReplaceLemmasRule(java.util.ResourceBundle messages, org.languagetool.Language language)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Locale
getLocale()
protected java.util.Map<java.lang.String,java.util.List<java.lang.String>>
getWrongWords()
boolean
isCaseSensitive()
org.languagetool.rules.RuleMatch[]
match(org.languagetool.AnalyzedSentence sentence)
-
Methods inherited from class org.languagetool.rules.AbstractSimpleReplaceRule
createRuleMatch, findMatches, getDescription, getId, getMessage, getShort, isCheckLemmas, isTagged, loadFromPath, setCheckLemmas, setIgnoreTaggedWords
-
Methods inherited from class org.languagetool.rules.Rule
addExamplePair, estimateContextForSureMatch, getAntiPatterns, getCategory, getConfigureText, getCorrectExamples, getDefaultValue, getErrorTriggeringExamples, getIncorrectExamples, getLocQualityIssueType, getMaxConfigurableValue, getMinConfigurableValue, getSentenceWithImmunization, getUrl, hasConfigurableValue, isDefaultOff, isDefaultTempOff, isDictionaryBasedSpellingRule, isOfficeDefaultOff, isOfficeDefaultOn, makeAntiPatterns, setCategory, setCorrectExamples, setDefaultOff, setDefaultOn, setDefaultTempOff, setErrorTriggeringExamples, setIncorrectExamples, setLocQualityIssueType, setOfficeDefaultOff, setOfficeDefaultOn, setUrl, supportsLanguage, toRuleMatchArray, useInOffice
-
-
-
-
Field Detail
-
wrongLemmas
protected java.util.Map<java.lang.String,java.util.List<java.lang.String>> wrongLemmas
-
CA_LOCALE
private static final java.util.Locale CA_LOCALE
-
synth
private CatalanSynthesizer synth
-
-
Method Detail
-
getWrongWords
protected java.util.Map<java.lang.String,java.util.List<java.lang.String>> getWrongWords()
- Specified by:
getWrongWords
in classorg.languagetool.rules.AbstractSimpleReplaceRule
-
isCaseSensitive
public boolean isCaseSensitive()
- Overrides:
isCaseSensitive
in classorg.languagetool.rules.AbstractSimpleReplaceRule
-
getLocale
public java.util.Locale getLocale()
- Overrides:
getLocale
in classorg.languagetool.rules.AbstractSimpleReplaceRule
-
match
public final org.languagetool.rules.RuleMatch[] match(org.languagetool.AnalyzedSentence sentence)
- Overrides:
match
in classorg.languagetool.rules.AbstractSimpleReplaceRule
-
-