Package org.languagetool.rules.ca
Class ComplexAdjectiveConcordanceRule
java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.ca.ComplexAdjectiveConcordanceRule
public class ComplexAdjectiveConcordanceRule
extends org.languagetool.rules.Rule
This rule checks if an adjective doesn't agree with the previous noun and at
the same time it doesn't agree with any of the previous words. Takes care of
some exceptions.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Pattern
private static final Pattern
private static final Pattern
private static final Pattern
private static final Pattern
private static final Pattern
private static final Pattern
private static final Pattern
private static final Pattern
private static final Pattern
private static final Pattern
private static final Pattern
private static final Pattern
private static final Pattern
private static final Pattern
private static final Pattern
(package private) boolean
private static final Pattern
private static final Pattern
private static final Pattern
private static final Pattern
(package private) boolean
private static final Pattern
private static final Pattern
private static final Pattern
private static final Pattern
private static final Pattern
private static final Pattern
private static final Pattern
private static final Pattern
private static final Pattern
private static final Pattern
private static final Pattern
private static final Pattern
private static final Pattern
private static final Pattern
private static final Pattern
private static final Pattern
private static final Pattern
private static final Pattern
private static final Pattern
private static final Pattern
private static final Pattern
private static final Pattern
Patternsprivate static final Pattern
private static final Pattern
private static final Pattern
private static final Pattern
private static final Pattern
private static final Pattern
private static final Pattern
private static final Pattern
private static final Pattern
private static final Pattern
(package private) boolean
private static final Pattern
private static final Pattern
private static final Pattern
private static final Pattern
private static final Pattern
Fields inherited from class org.languagetool.rules.Rule
messages
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()
private void
private boolean
keepCounting
(org.languagetool.AnalyzedTokenReadings aTr) org.languagetool.rules.RuleMatch[]
match
(org.languagetool.AnalyzedSentence sentence) private boolean
matchPostagRegexp
(org.languagetool.AnalyzedTokenReadings aToken, Pattern pattern) Match POS tag with regular expressionprivate boolean
matchRegexp
(String s, Pattern pattern) Match String with regular expressionprivate void
updateApparitions
(org.languagetool.AnalyzedTokenReadings aTr) 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 Details
-
NOM
Patterns -
NOM_MS
-
NOM_FS
-
NOM_MP
-
NOM_FP
-
NOM_CS
-
NOM_CP
-
NOM_DET
-
_GN_
-
_GN_MS
-
_GN_FS
-
_GN_MP
-
_GN_FP
-
_GN_CS
-
_GN_CP
-
DET
-
DET_CS
-
DET_MS
-
DET_FS
-
DET_MP
-
DET_FP
-
GN_MS
-
GN_FS
-
GN_MP
-
GN_FP
-
GN_CP
-
GN_CS
-
ADJECTIU
-
ADJECTIU_MS
-
ADJECTIU_FS
-
ADJECTIU_MP
-
ADJECTIU_FP
-
ADJECTIU_CP
-
ADJECTIU_CS
-
ADJECTIU_S
-
ADJECTIU_P
-
ADVERBI
-
CONJUNCIO
-
PUNTUACIO
-
LOC_ADV
-
ADVERBIS_ACCEPTATS
-
CONCORDA
-
UPPERCASE
-
COORDINACIO
-
COORDINACIO_IONI
-
KEEP_COUNT
-
KEEP_COUNT2
-
STOP_COUNT
-
PREPOSICIONS
-
PREPOSICIO_CANVI_NIVELL
-
VERB
-
GV
-
EXCEPCIONS_PARTICIPI
-
EXCEPCIONS_PREVIA
-
EXCEPCIONS_PREVIA_POSTAG
-
TOPONIM
-
ORDINAL
-
adverbAppeared
boolean adverbAppeared -
conjunctionAppeared
boolean conjunctionAppeared -
punctuationAppeared
boolean punctuationAppeared
-
-
Constructor Details
-
ComplexAdjectiveConcordanceRule
- Throws:
IOException
-
-
Method Details
-
getId
- Specified by:
getId
in classorg.languagetool.rules.Rule
-
getDescription
- Specified by:
getDescription
in classorg.languagetool.rules.Rule
-
match
public org.languagetool.rules.RuleMatch[] match(org.languagetool.AnalyzedSentence sentence) - Specified by:
match
in classorg.languagetool.rules.Rule
-
keepCounting
private boolean keepCounting(org.languagetool.AnalyzedTokenReadings aTr) -
initializeApparitions
private void initializeApparitions() -
updateApparitions
private void updateApparitions(org.languagetool.AnalyzedTokenReadings aTr) -
matchPostagRegexp
Match POS tag with regular expression -
matchRegexp
Match String with regular expression
-