Package org.languagetool.rules.uk
Class TokenAgreementAdjNounExceptionHelper
java.lang.Object
org.languagetool.rules.uk.TokenAgreementAdjNounExceptionHelper
- Since:
- 3.6
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancaseGovernmentMatches(List<AnalyzedToken> adjTokenReadings, List<InflectionHelper.Inflection> slaveInflections) private static booleancheckTextInSent(AnalyzedTokenReadings[] tokens, int pos, String text) private static booleanforwardConjFind(AnalyzedTokenReadings[] tokens, int pos, int depth) private static booleangenderMatches(List<InflectionHelper.Inflection> masterInflections, List<InflectionHelper.Inflection> slaveInflections, String masterCaseFilter, String slaveCaseFilter) private static booleanhasOverlapIgnoreGender(List<InflectionHelper.Inflection> masterInflections, List<InflectionHelper.Inflection> slaveInflections) private static booleanhasOverlapIgnoreGender(List<InflectionHelper.Inflection> masterInflections, List<InflectionHelper.Inflection> slaveInflections, String masterGenderFilter, String slaveGenderFilter) static booleanisException(AnalyzedTokenReadings[] tokens, int adjPos, int nounPos, List<InflectionHelper.Inflection> masterInflections, List<InflectionHelper.Inflection> slaveInflections, List<AnalyzedToken> adjTokenReadings, List<AnalyzedToken> slaveTokenReadings) private static voidprivate static booleanreverseConjAdvFind(AnalyzedTokenReadings[] tokens, int pos, int depth) private static booleanreverseConjFind(AnalyzedTokenReadings[] tokens, int pos, int depth) private static booleanreverseConjFind2(AnalyzedTokenReadings[] tokens, int pos, int depth)
-
Field Details
-
logger
private static final org.slf4j.Logger logger -
VERB_ADVP_PATTERN
-
NUMBER_V_NAZ
-
CONJ_FOR_PLURAL_WITH_COMMA
-
CONJ_FOR_PLURAL
-
CONJ_FOR_PLURAL_PATTERN
-
CONJ_FOR_PLURAL_WITH_COMMA_PATTERN
-
DOVYE_TROYE
-
VERB_NOT_INSERT_PATTERN
-
-
Constructor Details
-
TokenAgreementAdjNounExceptionHelper
private TokenAgreementAdjNounExceptionHelper()
-
-
Method Details
-
isException
public static boolean isException(AnalyzedTokenReadings[] tokens, int adjPos, int nounPos, List<InflectionHelper.Inflection> masterInflections, List<InflectionHelper.Inflection> slaveInflections, List<AnalyzedToken> adjTokenReadings, List<AnalyzedToken> slaveTokenReadings) -
genderMatches
private static boolean genderMatches(List<InflectionHelper.Inflection> masterInflections, List<InflectionHelper.Inflection> slaveInflections, String masterCaseFilter, String slaveCaseFilter) -
reverseConjAdvFind
-
reverseConjFind
-
reverseConjFind2
-
checkTextInSent
-
forwardConjFind
-
caseGovernmentMatches
public static boolean caseGovernmentMatches(List<AnalyzedToken> adjTokenReadings, List<InflectionHelper.Inflection> slaveInflections) -
hasOverlapIgnoreGender
private static boolean hasOverlapIgnoreGender(List<InflectionHelper.Inflection> masterInflections, List<InflectionHelper.Inflection> slaveInflections) -
hasOverlapIgnoreGender
private static boolean hasOverlapIgnoreGender(List<InflectionHelper.Inflection> masterInflections, List<InflectionHelper.Inflection> slaveInflections, String masterGenderFilter, String slaveGenderFilter) -
logException
private static void logException()
-