Package org.languagetool.rules.uk
Class TokenAgreementVerbNounExceptionHelper
java.lang.Object
org.languagetool.rules.uk.TokenAgreementVerbNounExceptionHelper
- Since:
- 5.9
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static booleanagrees(AnalyzedTokenReadings verbTokenReadings, List<VerbInflectionHelper.Inflection> nounAdjNazInflections, List<AnalyzedToken> nounAdjIndirTokenReadings) static booleanisException(AnalyzedTokenReadings[] tokens, TokenAgreementVerbNounRule.State state, List<VerbInflectionHelper.Inflection> verbInflections, List<VerbInflectionHelper.Inflection> nounAdjInflections, List<AnalyzedToken> verbTokenReadings, List<AnalyzedToken> nounTokenReadings) (package private) static intisExceptionHardAdjNoun(AnalyzedTokenReadings[] tokens, int i, TokenAgreementVerbNounRule.State state) (package private) static intisExceptionSkip(AnalyzedTokenReadings[] tokens, int i) (package private) static RuleExceptionisExceptionVerb(AnalyzedTokenReadings[] tokens, int i, TokenAgreementVerbNounRule.State state) private static void
-
Field Details
-
logger
private static final org.slf4j.Logger logger -
VCHYTY_PATTERN
-
ADV_PREDICT_PATTERN
-
MODALS_ADJ
-
V_ROD_DRIVER_PATTERN
-
PARTS_CANT_SKIP
-
-
Constructor Details
-
TokenAgreementVerbNounExceptionHelper
private TokenAgreementVerbNounExceptionHelper()
-
-
Method Details
-
isException
public static boolean isException(AnalyzedTokenReadings[] tokens, TokenAgreementVerbNounRule.State state, List<VerbInflectionHelper.Inflection> verbInflections, List<VerbInflectionHelper.Inflection> nounAdjInflections, List<AnalyzedToken> verbTokenReadings, List<AnalyzedToken> nounTokenReadings) -
agrees
private static boolean agrees(AnalyzedTokenReadings verbTokenReadings, List<VerbInflectionHelper.Inflection> nounAdjNazInflections, List<AnalyzedToken> nounAdjIndirTokenReadings) -
logException
private static void logException() -
isExceptionHardAdjNoun
static int isExceptionHardAdjNoun(AnalyzedTokenReadings[] tokens, int i, TokenAgreementVerbNounRule.State state) -
isExceptionSkip
-
isExceptionVerb
static RuleException isExceptionVerb(AnalyzedTokenReadings[] tokens, int i, TokenAgreementVerbNounRule.State state)
-