Package org.languagetool.rules.es
Class SpanishDiacriticsCheckRule
java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.es.SpanishDiacriticsCheckRule
public class SpanishDiacriticsCheckRule
extends org.languagetool.rules.Rule
This rule checks if a word without graphical accent and with a verb POS tag
should be a noun or an adjective with graphical accent. It uses two lists of
word pairs: verb-noun and verb-adjective.
-
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
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
Fields inherited from class org.languagetool.rules.Rule
messages
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()
org.languagetool.rules.RuleMatch[]
match
(org.languagetool.AnalyzedSentence sentence) private boolean
matchPostagRegexp
(org.languagetool.AnalyzedTokenReadings aToken, Pattern pattern) Match POS tag with regular expressionMethods 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
-
PREPOSICIO_DE
Patterns -
ARTICLE_EL_MS
-
ARTICLE_EL_FS
-
ARTICLE_EL_MP
-
ARTICLE_EL_FP
-
DETERMINANT
-
DETERMINANT_MS
-
DETERMINANT_FS
-
DETERMINANT_MP
-
DETERMINANT_FP
-
NOM_MS
-
NOM_FS
-
NOM_MP
-
NOM_FP
-
ADJECTIU_MS
-
ADJECTIU_FS
-
ADJECTIU_MP
-
ADJECTIU_FP
-
INFINITIU
-
VERB_CONJUGAT
-
PARTICIPI_MS
-
GRUP_VERBAL
-
VERB_3S
-
VERB_13S
-
NOT_IN_PREV_TOKEN
-
BEFORE_ADJECTIVE_MS
-
BEFORE_ADJECTIVE_FS
-
BEFORE_ADJECTIVE_MP
-
BEFORE_ADJECTIVE_FP
-
GN
-
EXCEPCIONS_DARRERE_DE
-
LOCUCIONS
-
PRONOM_FEBLE
-
relevantWords
-
relevantWords2
-
-
Constructor Details
-
SpanishDiacriticsCheckRule
- 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
-
matchPostagRegexp
Match POS tag with regular expression
-