Modifier and Type | Method and Description |
---|---|
RuleMatch |
Language.adjustMatch(RuleMatch rm,
List<String> features) |
RuleMatch |
JLanguageTool.adjustRuleMatchPos(RuleMatch match,
int charCount,
int columnCount,
int lineCount,
String sentence,
AnnotatedText annotatedText)
Change RuleMatch positions so they are relative to the complete text,
not just to the sentence.
|
Modifier and Type | Method and Description |
---|---|
List<RuleMatch> |
Language.adaptSuggestions(List<RuleMatch> ruleMatches,
Set<String> enabledRules) |
protected List<RuleMatch> |
JLanguageTool.applyCustomFilters(List<RuleMatch> matches,
AnnotatedText text)
should be called just once with complete list of matches, before returning them to caller
|
List<RuleMatch> |
JLanguageTool.check(AnnotatedText text)
The main check method.
|
List<RuleMatch> |
JLanguageTool.check(AnnotatedText annotatedText,
boolean tokenizeText,
JLanguageTool.ParagraphHandling paraMode)
The main check method.
|
List<RuleMatch> |
JLanguageTool.check(AnnotatedText annotatedText,
boolean tokenizeText,
JLanguageTool.ParagraphHandling paraMode,
RuleMatchListener listener)
The main check method.
|
List<RuleMatch> |
JLanguageTool.check(AnnotatedText annotatedText,
boolean tokenizeText,
JLanguageTool.ParagraphHandling paraMode,
RuleMatchListener listener,
JLanguageTool.Mode mode,
JLanguageTool.Level level)
The main check method.
|
List<RuleMatch> |
JLanguageTool.check(AnnotatedText annotatedText,
boolean tokenizeText,
JLanguageTool.ParagraphHandling paraMode,
RuleMatchListener listener,
JLanguageTool.Mode mode,
JLanguageTool.Level level,
Long textSessionID)
The main check method.
|
List<RuleMatch> |
JLanguageTool.check(AnnotatedText text,
RuleMatchListener listener) |
List<RuleMatch> |
JLanguageTool.check(String text)
The main check method.
|
List<RuleMatch> |
JLanguageTool.check(String text,
boolean tokenizeText,
JLanguageTool.ParagraphHandling paraMode) |
List<RuleMatch> |
JLanguageTool.check(String text,
boolean tokenizeText,
JLanguageTool.ParagraphHandling paraMode,
RuleMatchListener listener) |
List<RuleMatch> |
JLanguageTool.check(String text,
RuleMatchListener listener)
The main check method.
|
List<RuleMatch> |
JLanguageTool.checkAnalyzedSentence(JLanguageTool.ParagraphHandling paraMode,
List<Rule> rules,
AnalyzedSentence analyzedSentence)
Deprecated.
use one of the
JLanguageTool.check(java.lang.String) methods instead. |
List<RuleMatch> |
JLanguageTool.checkAnalyzedSentence(JLanguageTool.ParagraphHandling paraMode,
List<Rule> rules,
AnalyzedSentence analyzedSentence,
boolean checkRemoteRules)
This is an internal method that's public only for technical reasons, please use one
of the
JLanguageTool.check(String) methods instead. |
List<RuleMatch> |
ResultCache.getIfPresent(org.languagetool.InputSentence key) |
com.google.common.cache.Cache<org.languagetool.InputSentence,List<RuleMatch>> |
ResultCache.getMatchesCache() |
com.google.common.cache.Cache<org.languagetool.InputSentence,Map<String,List<RuleMatch>>> |
ResultCache.getRemoteMatchesCache() |
List<RuleMatch> |
CheckResults.getRuleMatches() |
List<RuleMatch> |
Language.mergeSuggestions(List<RuleMatch> ruleMatches,
AnnotatedText text,
Set<String> enabledRules)
This function is called by JLanguageTool before CleanOverlappingFilter removes overlapping ruleMatches
|
Modifier and Type | Method and Description |
---|---|
RuleMatch |
Language.adjustMatch(RuleMatch rm,
List<String> features) |
RuleMatch |
JLanguageTool.adjustRuleMatchPos(RuleMatch match,
int charCount,
int columnCount,
int lineCount,
String sentence,
AnnotatedText annotatedText)
Change RuleMatch positions so they are relative to the complete text,
not just to the sentence.
|
void |
RuleMatchListener.matchFound(RuleMatch ruleMatch)
Called for every
RuleMatch found. |
Modifier and Type | Method and Description |
---|---|
List<RuleMatch> |
Language.adaptSuggestions(List<RuleMatch> ruleMatches,
Set<String> enabledRules) |
protected List<RuleMatch> |
JLanguageTool.applyCustomFilters(List<RuleMatch> matches,
AnnotatedText text)
should be called just once with complete list of matches, before returning them to caller
|
protected void |
JLanguageTool.fetchRemoteRuleResults(long deadlineStartNanos,
JLanguageTool.Mode mode,
JLanguageTool.Level level,
List<AnalyzedSentence> analyzedSentences,
List<RuleMatch> remoteMatches,
List<FutureTask<RemoteRuleResult>> remoteRuleTasks,
List<RemoteRule> remoteRules,
List<Integer> requestSize,
Map<Integer,List<RuleMatch>> cachedResults,
Map<Integer,Integer> matchOffset,
AnnotatedText annotatedText,
Long textSessionID,
Set<ToneTag> toneTags) |
protected void |
JLanguageTool.fetchRemoteRuleResults(long deadlineStartNanos,
JLanguageTool.Mode mode,
JLanguageTool.Level level,
List<AnalyzedSentence> analyzedSentences,
List<RuleMatch> remoteMatches,
List<FutureTask<RemoteRuleResult>> remoteRuleTasks,
List<RemoteRule> remoteRules,
List<Integer> requestSize,
Map<Integer,List<RuleMatch>> cachedResults,
Map<Integer,Integer> matchOffset,
AnnotatedText annotatedText,
Long textSessionID,
Set<ToneTag> toneTags) |
List<RuleMatch> |
Language.mergeSuggestions(List<RuleMatch> ruleMatches,
AnnotatedText text,
Set<String> enabledRules)
This function is called by JLanguageTool before CleanOverlappingFilter removes overlapping ruleMatches
|
void |
ResultCache.put(org.languagetool.InputSentence key,
List<RuleMatch> sentenceMatches) |
void |
CheckResults.setRuleMatches(List<RuleMatch> ruleMatches) |
Constructor and Description |
---|
CheckResults(List<RuleMatch> ruleMatches,
List<Range> ignoredRanges) |
Modifier and Type | Method and Description |
---|---|
static void |
CommandLineTools.printMatches(List<RuleMatch> ruleMatches,
int prevMatches,
String contents,
int contextSize,
Language lang,
boolean verbose)
Displays matches in a simple text format.
|
Modifier and Type | Method and Description |
---|---|
boolean |
ErrorSentence.hasErrorCoveredByMatch(RuleMatch match) |
boolean |
ErrorSentence.hasErrorCoveredByMatchAndGoodFirstSuggestion(RuleMatch match) |
boolean |
ErrorSentence.hasErrorOverlappingWithMatch(RuleMatch match) |
Modifier and Type | Method and Description |
---|---|
List<RuleMatch> |
MatchingSentence.getRuleMatches() |
Modifier and Type | Method and Description |
---|---|
RuleMatch |
AppliedRuleMatch.getRuleMatch() |
RuleMatch |
RuleMatchApplication.getRuleMatch() |
Modifier and Type | Method and Description |
---|---|
List<RuleMatch> |
WikipediaQuickCheckResult.getRuleMatches() |
Modifier and Type | Method and Description |
---|---|
List<RuleMatchApplication> |
SuggestionReplacer.applySuggestionsToOriginalText(RuleMatch match)
Applies the suggestions from the rule to the original text.
|
Constructor and Description |
---|
AppliedRuleMatch(RuleMatch ruleMatch,
List<RuleMatchApplication> ruleMatchApplications) |
Constructor and Description |
---|
WikipediaQuickCheckResult(String text,
List<RuleMatch> ruleMatches,
String languageCode) |
Modifier and Type | Method and Description |
---|---|
List<RuleMatch> |
Catalan.adaptSuggestions(List<RuleMatch> ruleMatches,
Set<String> enabledRules) |
List<RuleMatch> |
SwissGerman.adaptSuggestions(List<RuleMatch> ruleMatches,
Set<String> enabledRules) |
List<RuleMatch> |
French.adaptSuggestions(List<RuleMatch> ruleMatches,
Set<String> enabledRules) |
List<RuleMatch> |
English.adaptSuggestions(List<RuleMatch> ruleMatches,
Set<String> enabledRules) |
Modifier and Type | Method and Description |
---|---|
List<RuleMatch> |
Catalan.adaptSuggestions(List<RuleMatch> ruleMatches,
Set<String> enabledRules) |
List<RuleMatch> |
SwissGerman.adaptSuggestions(List<RuleMatch> ruleMatches,
Set<String> enabledRules) |
List<RuleMatch> |
French.adaptSuggestions(List<RuleMatch> ruleMatches,
Set<String> enabledRules) |
List<RuleMatch> |
English.adaptSuggestions(List<RuleMatch> ruleMatches,
Set<String> enabledRules) |
Modifier and Type | Method and Description |
---|---|
List<RuleMatch> |
SwJLanguageTool.check(String text,
boolean tokenizeText,
JLanguageTool.ParagraphHandling paraMode)
check text by LT
default: check only grammar
local: LT checks only grammar (spell check is not implemented locally)
remote: spell checking is used for LT check dialog (is needed because method getAnalyzedSentence is not supported by remote check)
|
List<RuleMatch> |
SwJLanguageTool.check(String text,
boolean tokenizeText,
JLanguageTool.ParagraphHandling paraMode,
OfficeTools.RemoteCheck checkMode) |
Modifier and Type | Field and Description |
---|---|
static RuleMatch[] |
RuleMatch.EMPTY_ARRAY |
Modifier and Type | Method and Description |
---|---|
RuleMatch |
AbstractTextToNumberFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
AdaptSuggestionsFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
ConvertToSentenceCaseFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
AbstractDateCheckFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> args,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
AbstractMakeContractionsFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
AddCommasFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
AbstractSuppressMisspelledSuggestionsFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
AbstractFindSuggestionsFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
DateRangeChecker.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
WhitespaceCheckFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
PartialPosTagFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> args,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
AbstractNumberInWordFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
AbstractAdvancedSynthesizerFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
ShortenedYearRangeChecker.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
AbstractFutureDateFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> args,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
AbstractSuppressIfAnyRuleMatchesFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
MultitokenSpellerFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
AbstractNewYearDateFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> args,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
YMDDateHelper.correctDate(RuleMatch match,
Map<String,String> args) |
protected RuleMatch |
AbstractSimpleReplaceRule.createRuleMatch(AnalyzedTokenReadings tokenReadings,
List<String> replacements,
AnalyzedSentence sentence,
String originalTokenStr) |
protected RuleMatch |
WordRepeatRule.createRuleMatch(String prevToken,
String token,
int prevPos,
int pos,
String msg,
AnalyzedSentence sentence) |
static RuleMatch |
GRPCUtils.fromGRPC(MLServerProto.Match m,
AnalyzedSentence s) |
RuleMatch[] |
AbstractSpaceBeforeRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
WrongWordInContextRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
DemoRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
FakeRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
GRPCRule.GRPCSubRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
AbstractPunctuationCheckRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
AbstractCompoundRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
AbstractUnitConversionRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
AbstractCheckCaseRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
AbstractDashRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
AbstractSimpleReplaceRule2.match(AnalyzedSentence sentence) |
RuleMatch[] |
SpecificIdRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
RemoteRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
WordRepeatRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
TextLevelRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
AbstractSpecificCaseRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
WhitespaceBeforePunctuationRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
WhiteSpaceAtBeginOfParagraph.match(AnalyzedSentence sentence) |
RuleMatch[] |
CommaWhitespaceRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
AdvancedWordRepeatRule.match(AnalyzedSentence sentence) |
abstract RuleMatch[] |
Rule.match(AnalyzedSentence sentence)
Check whether the given sentence matches this error rule, i.e. whether it
contains the error detected by this rule.
|
RuleMatch[] |
AbstractSimpleReplaceRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
DoublePunctuationRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
WhiteSpaceBeforeParagraphEnd.match(List<AnalyzedSentence> sentences) |
RuleMatch[] |
EmptyLineRule.match(List<AnalyzedSentence> sentences) |
RuleMatch[] |
AbstractStyleRepeatedWordRule.match(List<AnalyzedSentence> sentences) |
RuleMatch[] |
ParagraphRepeatBeginningRule.match(List<AnalyzedSentence> sentences) |
RuleMatch[] |
ReadabilityRule.match(List<AnalyzedSentence> sentences) |
RuleMatch[] |
AbstractStyleTooOftenUsedWordRule.match(List<AnalyzedSentence> sentences) |
RuleMatch[] |
PunctuationMarkAtParagraphEnd2.match(List<AnalyzedSentence> sentences) |
RuleMatch[] |
AbstractRepeatedWordsRule.match(List<AnalyzedSentence> sentences) |
RuleMatch[] |
AbstractStatisticStyleRule.match(List<AnalyzedSentence> sentences) |
RuleMatch[] |
UppercaseSentenceStartRule.match(List<AnalyzedSentence> sentences) |
RuleMatch[] |
LongSentenceRule.match(List<AnalyzedSentence> sentences) |
RuleMatch[] |
WordRepeatBeginningRule.match(List<AnalyzedSentence> sentences) |
abstract RuleMatch[] |
TextLevelRule.match(List<AnalyzedSentence> sentences)
Deprecated.
use
TextLevelRule.match(List, AnnotatedText) instead |
RuleMatch[] |
PunctuationMarkAtParagraphEnd.match(List<AnalyzedSentence> sentences) |
RuleMatch[] |
GenericUnpairedBracketsRule.match(List<AnalyzedSentence> sentences) |
RuleMatch[] |
SentenceWhitespaceRule.match(List<AnalyzedSentence> sentences) |
RuleMatch[] |
MultipleWhitespaceRule.match(List<AnalyzedSentence> sentences) |
RuleMatch[] |
AbstractFillerWordsRule.match(List<AnalyzedSentence> sentences) |
RuleMatch[] |
AbstractWordCoherencyRule.match(List<AnalyzedSentence> sentences) |
RuleMatch[] |
AbstractStatisticSentenceStyleRule.match(List<AnalyzedSentence> sentences) |
RuleMatch[] |
LongParagraphRule.match(List<AnalyzedSentence> sentences) |
RuleMatch[] |
TextLevelRule.match(List<AnalyzedSentence> sentences,
AnnotatedText annotatedText) |
protected RuleMatch[] |
Rule.toRuleMatchArray(List<RuleMatch> ruleMatches) |
Modifier and Type | Method and Description |
---|---|
List<RuleMatch> |
GRPCPostProcessing.filter(List<AnalyzedSentence> sentences,
List<RuleMatch> ruleMatches,
Long textSessionID,
boolean inputLogging) |
default List<RuleMatch> |
RuleMatchFilter.filter(List<RuleMatch> ruleMatches)
Deprecated.
use and implement
filter(List<RuleMatch> ruleMatches, AnnotatedText text) |
List<RuleMatch> |
SameRuleGroupFilter.filter(List<RuleMatch> ruleMatches) |
List<RuleMatch> |
LanguageDependentFilter.filter(List<RuleMatch> ruleMatches) |
List<RuleMatch> |
RuleWithMaxFilter.filter(List<RuleMatch> ruleMatches) |
List<RuleMatch> |
CleanOverlappingFilter.filter(List<RuleMatch> ruleMatches) |
default List<RuleMatch> |
RuleMatchFilter.filter(List<RuleMatch> ruleMatches,
AnnotatedText text) |
List<RuleMatch> |
LanguageDependentMergeSuggestionFilter.filter(List<RuleMatch> ruleMatches,
AnnotatedText text) |
List<RuleMatch> |
DictionaryMatchFilter.filter(List<RuleMatch> ruleMatches,
AnnotatedText text) |
List<RuleMatch> |
DictionarySpellMatchFilter.filter(List<RuleMatch> ruleMatches,
AnnotatedText text) |
static List<RuleMatch> |
RemoteRuleFilters.filterMatches(Language lang,
AnalyzedSentence sentence,
List<RuleMatch> matches) |
protected List<RuleMatch> |
AbstractSimpleReplaceRule.findMatches(AnalyzedTokenReadings tokenReadings,
AnalyzedSentence sentence) |
List<RuleMatch> |
RemoteRuleResult.getMatches() |
Map<String,List<RuleMatch>> |
DictionarySpellMatchFilter.getPhrases(List<RuleMatch> ruleMatches,
AnnotatedText text) |
List<RuleMatch> |
RemoteRuleResult.matchesForSentence(AnalyzedSentence sentence)
get matches for a specific sentence
|
protected List<RuleMatch> |
GRPCPostProcessing.runPostprocessing(List<AnalyzedSentence> sentences,
List<RuleMatch> ruleMatches,
Long textSessionID,
boolean inputLogging,
int chars) |
Modifier and Type | Method and Description |
---|---|
RuleMatch |
AbstractTextToNumberFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
AdaptSuggestionsFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
ConvertToSentenceCaseFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
AbstractDateCheckFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> args,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
AbstractMakeContractionsFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
AddCommasFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
AbstractSuppressMisspelledSuggestionsFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
AbstractFindSuggestionsFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
DateRangeChecker.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
WhitespaceCheckFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
PartialPosTagFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> args,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
AbstractNumberInWordFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
AbstractAdvancedSynthesizerFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
ShortenedYearRangeChecker.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
AbstractFutureDateFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> args,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
AbstractSuppressIfAnyRuleMatchesFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
MultitokenSpellerFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
AbstractNewYearDateFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> args,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
int |
RuleMatch.compareTo(RuleMatch other)
Compare by start position.
|
RuleMatch |
YMDDateHelper.correctDate(RuleMatch match,
Map<String,String> args) |
static String |
GRPCUtils.getUrl(RuleMatch m) |
protected boolean |
CleanOverlappingFilter.isPremiumRule(RuleMatch ruleMatch) |
static MLServerProto.Match |
GRPCUtils.toGRPC(RuleMatch m) |
Modifier and Type | Method and Description |
---|---|
List<RuleMatch> |
GRPCPostProcessing.filter(List<AnalyzedSentence> sentences,
List<RuleMatch> ruleMatches,
Long textSessionID,
boolean inputLogging) |
default List<RuleMatch> |
RuleMatchFilter.filter(List<RuleMatch> ruleMatches)
Deprecated.
use and implement
filter(List<RuleMatch> ruleMatches, AnnotatedText text) |
List<RuleMatch> |
SameRuleGroupFilter.filter(List<RuleMatch> ruleMatches) |
List<RuleMatch> |
LanguageDependentFilter.filter(List<RuleMatch> ruleMatches) |
List<RuleMatch> |
RuleWithMaxFilter.filter(List<RuleMatch> ruleMatches) |
List<RuleMatch> |
CleanOverlappingFilter.filter(List<RuleMatch> ruleMatches) |
default List<RuleMatch> |
RuleMatchFilter.filter(List<RuleMatch> ruleMatches,
AnnotatedText text) |
List<RuleMatch> |
LanguageDependentMergeSuggestionFilter.filter(List<RuleMatch> ruleMatches,
AnnotatedText text) |
List<RuleMatch> |
DictionaryMatchFilter.filter(List<RuleMatch> ruleMatches,
AnnotatedText text) |
List<RuleMatch> |
DictionarySpellMatchFilter.filter(List<RuleMatch> ruleMatches,
AnnotatedText text) |
static List<RuleMatch> |
RemoteRuleFilters.filterMatches(Language lang,
AnalyzedSentence sentence,
List<RuleMatch> matches) |
static void |
RemoteRule.fixMatchOffsets(AnalyzedSentence sentence,
List<RuleMatch> matches)
Adapt match positions so that results from languages that thread emojis, etc. as length 1
work for Java and match the normal offsets we use
JavaScript also behaves like Java, so most clients will expect this behavior;
but servers used for RemoteRules will often be written in Python (e.g. to access ML frameworks)
based on offsetByCodePoints since codePointCount can be confusing,
e.g. "👪".codePointCount(0,2) == 1, but length is 2
Java substring methods use this length (which can be >1 for a single character)
whereas Python 3 indexing/slicing and len() in strings treat them as a single character
so "😁foo".length() == 5, but len("😁foo") == 4;
"😁foo".substring(2,5) == "foo" but "😁foo"[1:4] == 'foo'
|
Map<String,List<RuleMatch>> |
DictionarySpellMatchFilter.getPhrases(List<RuleMatch> ruleMatches,
AnnotatedText text) |
protected List<RuleMatch> |
GRPCPostProcessing.runPostprocessing(List<AnalyzedSentence> sentences,
List<RuleMatch> ruleMatches,
Long textSessionID,
boolean inputLogging,
int chars) |
protected RuleMatch[] |
Rule.toRuleMatchArray(List<RuleMatch> ruleMatches) |
Constructor and Description |
---|
RuleMatch(RuleMatch clone) |
RuleMatch(RuleMatch clone,
List<SuggestedReplacement> replacements) |
RuleMatch(RuleMatch clone,
List<SuggestedReplacement> replacements,
boolean ignored) |
Constructor and Description |
---|
RemoteRuleResult(boolean remote,
boolean success,
List<RuleMatch> matches,
List<AnalyzedSentence> processedSentences) |
Modifier and Type | Method and Description |
---|---|
RuleMatch[] |
ArabicTransVerbRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
ArabicInflectedOneWordReplaceRule.match(AnalyzedSentence sentence) |
Modifier and Type | Method and Description |
---|---|
RuleMatch |
ArabicAdjectiveToExclamationFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
ArabicDMYDateCheckFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> args,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
ArabicVerbToMafoulMutlaqFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
ArabicMasdarToVerbFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
ArabicNumberPhraseFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
Modifier and Type | Method and Description |
---|---|
RuleMatch |
ArabicAdjectiveToExclamationFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
ArabicDMYDateCheckFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> args,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
ArabicVerbToMafoulMutlaqFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
ArabicMasdarToVerbFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
ArabicNumberPhraseFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
Modifier and Type | Method and Description |
---|---|
RuleMatch[] |
BitextRule.match(AnalyzedSentence sentence)
This method makes no sense for bitext, thus it always returns
null . |
abstract RuleMatch[] |
BitextRule.match(AnalyzedSentence sourceText,
AnalyzedSentence targetText) |
RuleMatch[] |
DifferentLengthRule.match(AnalyzedSentence sourceText,
AnalyzedSentence targetText) |
RuleMatch[] |
SameTranslationRule.match(AnalyzedSentence sourceText,
AnalyzedSentence targetText) |
RuleMatch[] |
DifferentPunctuationRule.match(AnalyzedSentence sourceText,
AnalyzedSentence targetText) |
Modifier and Type | Method and Description |
---|---|
RuleMatch[] |
TopoReplaceRule.match(AnalyzedSentence sentence) |
Modifier and Type | Method and Description |
---|---|
RuleMatch |
DiacriticsCheckFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
AnarASuggestionsFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
OblidarseSugestionsFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
PostponedAdjectiveConcordanceFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
CatalanNumberSpellerFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
SynthesizeWithDeterminerFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
PortarTempsSuggestionsFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
AdjustPronounsFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
FindSuggestionsEsFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
DonarTempsSuggestionsFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch[] |
PronomFebleDuplicateRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
SimpleReplaceVerbsRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
AbstractSimpleReplaceLemmasRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
ReplaceOperationNamesRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
CatalanUnpairedQuestionMarksRule.match(List<AnalyzedSentence> sentences) |
Modifier and Type | Method and Description |
---|---|
RuleMatch |
DiacriticsCheckFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
AnarASuggestionsFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
OblidarseSugestionsFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
PostponedAdjectiveConcordanceFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
CatalanNumberSpellerFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
SynthesizeWithDeterminerFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
PortarTempsSuggestionsFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
AdjustPronounsFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
FindSuggestionsEsFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
DonarTempsSuggestionsFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
Modifier and Type | Method and Description |
---|---|
RuleMatch |
YMDNewYearDateFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> args,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
CompoundCheckFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
ValidWordFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
RemoveUnknownCompoundsFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
InsertCommaFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
UppercaseNounReadingFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
RecentYearFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
AdaptSuggestionFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
PotentialCompoundFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
YMDDateCheckFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> args,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
protected RuleMatch |
GermanSpellerRule.createWrongSplitMatch(AnalyzedSentence sentence,
List<RuleMatch> ruleMatchesSoFar,
int pos,
String coveredWord,
String suggestion1,
String suggestion2,
int prevPos) |
RuleMatch[] |
CompoundInfinitivRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
UpperCaseNgramRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
MissingCommaRelativeClauseRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
AgreementRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
WiederVsWiderRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
GermanSpellerRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
OldSpellingRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
ProhibitedCompoundRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
MissingVerbRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
CaseRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
DashRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
SubjectVerbAgreementRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
AgreementRule2.match(AnalyzedSentence sentence) |
RuleMatch[] |
RedundantModalOrAuxiliaryVerb.match(AnalyzedSentence sentence) |
RuleMatch[] |
SimilarNameRule.match(List<AnalyzedSentence> sentences) |
RuleMatch[] |
DuUpperLowerCaseRule.match(List<AnalyzedSentence> sentences) |
RuleMatch[] |
StyleRepeatedVeryShortSentences.match(List<AnalyzedSentence> sentences) |
RuleMatch[] |
VerbAgreementRule.match(List<AnalyzedSentence> sentences) |
RuleMatch[] |
StyleRepeatedSentenceBeginning.match(List<AnalyzedSentence> sentences) |
RuleMatch[] |
CompoundCoherencyRule.match(List<AnalyzedSentence> sentences) |
Modifier and Type | Method and Description |
---|---|
RuleMatch |
YMDNewYearDateFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> args,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
CompoundCheckFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
ValidWordFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
RemoveUnknownCompoundsFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
InsertCommaFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
UppercaseNounReadingFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
RecentYearFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
AdaptSuggestionFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
PotentialCompoundFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
YMDDateCheckFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> args,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
Modifier and Type | Method and Description |
---|---|
protected RuleMatch |
GermanSpellerRule.createWrongSplitMatch(AnalyzedSentence sentence,
List<RuleMatch> ruleMatchesSoFar,
int pos,
String coveredWord,
String suggestion1,
String suggestion2,
int prevPos) |
Modifier and Type | Method and Description |
---|---|
RuleMatch[] |
NumeralStressRule.match(AnalyzedSentence sentence) |
Modifier and Type | Method and Description |
---|---|
RuleMatch |
AdverbFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
YMDNewYearDateFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> args,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
YMDDateCheckFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> args,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
OrdinalSuffixFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch[] |
AbstractEnglishSpellerRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
UpperCaseNgramRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
AvsAnRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
ConsistentApostrophesRule.match(List<AnalyzedSentence> sentences) |
Modifier and Type | Method and Description |
---|---|
protected List<RuleMatch> |
AbstractEnglishSpellerRule.getRuleMatches(String word,
int startPos,
AnalyzedSentence sentence,
List<RuleMatch> ruleMatchesSoFar,
int idx,
AnalyzedTokenReadings[] tokens) |
Modifier and Type | Method and Description |
---|---|
RuleMatch |
AdverbFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
YMDNewYearDateFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> args,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
YMDDateCheckFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> args,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
OrdinalSuffixFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
Modifier and Type | Method and Description |
---|---|
protected List<RuleMatch> |
AbstractEnglishSpellerRule.getRuleMatches(String word,
int startPos,
AnalyzedSentence sentence,
List<RuleMatch> ruleMatchesSoFar,
int idx,
AnalyzedTokenReadings[] tokens) |
Modifier and Type | Method and Description |
---|---|
RuleMatch |
PostponedAdjectiveConcordanceFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
ConfusionCheckFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch[] |
SimpleReplaceVerbsRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
QuestionMarkRule.match(List<AnalyzedSentence> sentences) |
Modifier and Type | Method and Description |
---|---|
RuleMatch |
PostponedAdjectiveConcordanceFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
ConfusionCheckFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
Modifier and Type | Method and Description |
---|---|
RuleMatch |
SuggestionsFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
PostponedAdjectiveConcordanceFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
WordWithDeterminerFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
InterrogativeVerbFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
DMYDateCheckFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> args,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch[] |
GrammalecteRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
QuestionWhitespaceRule.match(AnalyzedSentence sentence) |
Modifier and Type | Method and Description |
---|---|
RuleMatch |
SuggestionsFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
PostponedAdjectiveConcordanceFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
WordWithDeterminerFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
InterrogativeVerbFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
DMYDateCheckFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> args,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
Modifier and Type | Method and Description |
---|---|
RuleMatch[] |
DhaNoBeirtRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
IrishSpecificCaseRule.match(AnalyzedSentence sentence) |
Modifier and Type | Method and Description |
---|---|
RuleMatch[] |
KhmerWordRepeatRule.match(AnalyzedSentence sentence) |
Modifier and Type | Method and Description |
---|---|
RuleMatch[] |
ConfusionProbabilityRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
NgramProbabilityRule.match(AnalyzedSentence sentence) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
NgramProbabilityRule.acceptMatch(RuleMatch match,
Probability p,
AnalyzedSentence sentence)
Overwrite this method to discard matches by returning
false . |
Modifier and Type | Method and Description |
---|---|
RuleMatch |
CompoundFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch[] |
SpaceInCompoundRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
PreferredWordRule.match(AnalyzedSentence sentence) |
Modifier and Type | Method and Description |
---|---|
RuleMatch |
CompoundFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
Modifier and Type | Method and Description |
---|---|
RuleMatch |
RegexAntiPatternFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
AnalyzedSentence sentenceObj,
Matcher patternMatcher) |
abstract RuleMatch |
RegexRuleFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
AnalyzedSentence sentenceObj,
Matcher patternMatcher)
Returns the original rule match or a modified one, or
null
if the rule match is filtered out. |
RuleMatch |
ApostropheTypeFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
abstract RuleMatch |
RuleFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens)
Returns the original rule match or a modified one, or
null
if the rule match is filtered out. |
RuleMatch[] |
PatternRuleMatcher.match(AnalyzedSentence sentence) |
RuleMatch[] |
RuleMatcher.match(AnalyzedSentence sentence) |
RuleMatch[] |
PatternRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
RegexPatternRule.match(AnalyzedSentence sentenceObj) |
RuleMatch[] |
AbstractPatternRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
RepeatedPatternRuleTransformer.RepeatedPatternRule.match(List<AnalyzedSentence> sentences) |
RuleMatch[] |
ConsistencyPatternRuleTransformer.ConsistencyPatternRule.match(List<AnalyzedSentence> sentences) |
RuleMatch |
RegexRuleFilterEvaluator.runFilter(String filterArgs,
RuleMatch ruleMatch,
AnalyzedSentence sentenceObj,
Matcher patternMatcher) |
RuleMatch |
RuleFilterEvaluator.runFilter(String filterArgs,
RuleMatch ruleMatch,
AnalyzedTokenReadings[] patternTokens,
int patternTokenPos,
List<Integer> tokenPositions) |
Modifier and Type | Method and Description |
---|---|
RuleMatch |
RegexAntiPatternFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
AnalyzedSentence sentenceObj,
Matcher patternMatcher) |
abstract RuleMatch |
RegexRuleFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
AnalyzedSentence sentenceObj,
Matcher patternMatcher)
Returns the original rule match or a modified one, or
null
if the rule match is filtered out. |
RuleMatch |
ApostropheTypeFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
abstract RuleMatch |
RuleFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens)
Returns the original rule match or a modified one, or
null
if the rule match is filtered out. |
protected int |
RuleFilter.getPosition(String fromStr,
AnalyzedTokenReadings[] patternTokens,
RuleMatch match) |
protected boolean |
RuleFilter.isMatchAtSentenceStart(AnalyzedTokenReadings[] tokens,
RuleMatch match) |
RuleMatch |
RegexRuleFilterEvaluator.runFilter(String filterArgs,
RuleMatch ruleMatch,
AnalyzedSentence sentenceObj,
Matcher patternMatcher) |
RuleMatch |
RuleFilterEvaluator.runFilter(String filterArgs,
RuleMatch ruleMatch,
AnalyzedTokenReadings[] patternTokens,
int patternTokenPos,
List<Integer> tokenPositions) |
Modifier and Type | Method and Description |
---|---|
RuleMatch[] |
BitextPatternRule.match(AnalyzedSentence sentence)
This method always returns an empty array.
|
RuleMatch[] |
BitextPatternRule.match(AnalyzedSentence sourceSentence,
AnalyzedSentence targetSentence) |
Modifier and Type | Method and Description |
---|---|
RuleMatch |
DecadeSpellingFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
Modifier and Type | Method and Description |
---|---|
protected List<RuleMatch> |
MorfologikPolishSpellerRule.getRuleMatches(String word,
int startPos,
AnalyzedSentence sentence,
List<RuleMatch> ruleMatchesSoFar,
int idx,
AnalyzedTokenReadings[] tokens) |
Modifier and Type | Method and Description |
---|---|
RuleMatch |
DecadeSpellingFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
Modifier and Type | Method and Description |
---|---|
protected List<RuleMatch> |
MorfologikPolishSpellerRule.getRuleMatches(String word,
int startPos,
AnalyzedSentence sentence,
List<RuleMatch> ruleMatchesSoFar,
int idx,
AnalyzedTokenReadings[] tokens) |
Modifier and Type | Method and Description |
---|---|
RuleMatch |
YMDNewYearDateFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> args,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
ConfusionCheckFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
RomanNumeralFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
YMDDateCheckFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> args,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
RegularIrregularParticipleFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch[] |
PortugueseAccentuationCheckRule.match(AnalyzedSentence sentence) |
Modifier and Type | Method and Description |
---|---|
RuleMatch |
YMDNewYearDateFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> args,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
ConfusionCheckFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
RomanNumeralFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
YMDDateCheckFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> args,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
RegularIrregularParticipleFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
Modifier and Type | Method and Description |
---|---|
RuleMatch |
INNNumberFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> args,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch[] |
RussianVerbConjugationRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
RussianSpecificCaseRule.match(AnalyzedSentence sentence) |
Modifier and Type | Method and Description |
---|---|
RuleMatch |
INNNumberFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> args,
int patternTokenPos,
AnalyzedTokenReadings[] patternTokens) |
Modifier and Type | Method and Description |
---|---|
protected RuleMatch |
SpellingCheckRule.createWrongSplitMatch(AnalyzedSentence sentence,
List<RuleMatch> ruleMatchesSoFar,
int pos,
String coveredWord,
String suggestion1,
String suggestion2,
int prevPos) |
abstract RuleMatch[] |
SpellingCheckRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
SymSpellRule.match(AnalyzedSentence sentence) |
Modifier and Type | Method and Description |
---|---|
protected static void |
SpellingCheckRule.addSuggestionsToRuleMatch(String word,
List<SuggestedReplacement> userCandidatesList,
List<SuggestedReplacement> candidatesList,
SuggestionsOrderer orderer,
RuleMatch match) |
Modifier and Type | Method and Description |
---|---|
protected RuleMatch |
SpellingCheckRule.createWrongSplitMatch(AnalyzedSentence sentence,
List<RuleMatch> ruleMatchesSoFar,
int pos,
String coveredWord,
String suggestion1,
String suggestion2,
int prevPos) |
Modifier and Type | Method and Description |
---|---|
RuleMatch[] |
HunspellRule.match(AnalyzedSentence sentence) |
Modifier and Type | Method and Description |
---|---|
RuleMatch[] |
MorfologikSpellerRule.match(AnalyzedSentence sentence) |
Modifier and Type | Method and Description |
---|---|
protected List<RuleMatch> |
MorfologikSpellerRule.getRuleMatches(String word,
int startPos,
AnalyzedSentence sentence,
List<RuleMatch> ruleMatchesSoFar,
int idx,
AnalyzedTokenReadings[] tokens) |
Modifier and Type | Method and Description |
---|---|
protected List<RuleMatch> |
MorfologikSpellerRule.getRuleMatches(String word,
int startPos,
AnalyzedSentence sentence,
List<RuleMatch> ruleMatchesSoFar,
int idx,
AnalyzedTokenReadings[] tokens) |
Modifier and Type | Method and Description |
---|---|
protected RuleMatch |
UkrainianWordRepeatRule.createRuleMatch(String prevToken,
String token,
int prevPos,
int pos,
String msg,
AnalyzedSentence sentence) |
RuleMatch[] |
MissingHyphenRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
SimpleReplaceSpelling2019Rule.match(AnalyzedSentence sentence) |
RuleMatch[] |
SimpleReplaceSpelling1992Rule.match(AnalyzedSentence sentence) |
RuleMatch[] |
TokenAgreementPrepNounRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
TypographyRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
MixedAlphabetsRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
SimpleReplaceRenamedRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
TokenAgreementNumrNounRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
HiddenCharacterRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
TokenAgreementVerbNounRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
TokenAgreementAdjNounRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
TokenAgreementNounVerbRule.match(AnalyzedSentence sentence) |
Modifier and Type | Method and Description |
---|---|
protected List<RuleMatch> |
SimpleReplaceRule.findMatches(AnalyzedTokenReadings tokenReadings,
AnalyzedSentence sentence) |
Modifier and Type | Method and Description |
---|---|
static List<RuleMatch> |
Tools.checkBitext(String src,
String trg,
JLanguageTool srcLt,
JLanguageTool trgLt,
List<BitextRule> bRules)
Checks the bilingual input (bitext).
|
Modifier and Type | Method and Description |
---|---|
static String |
Tools.correctTextFromMatches(String contents,
List<RuleMatch> matches) |
String |
RuleMatchesAsJsonSerializer.ruleMatchesToJson(List<RuleMatch> matches,
List<RuleMatch> hiddenMatches,
AnnotatedText text,
int contextSize,
DetectedLanguage detectedLang,
String incompleteResultsReason,
boolean showPremiumHint) |
String |
RuleMatchesAsJsonSerializer.ruleMatchesToJson(List<RuleMatch> matches,
List<RuleMatch> hiddenMatches,
AnnotatedText text,
int contextSize,
DetectedLanguage detectedLang,
String incompleteResultsReason,
boolean showPremiumHint) |
String |
RuleMatchesAsJsonSerializer.ruleMatchesToJson(List<RuleMatch> matches,
List<RuleMatch> hiddenMatches,
String text,
int contextSize,
DetectedLanguage detectedLang,
String incompleteResultsReason) |
String |
RuleMatchesAsJsonSerializer.ruleMatchesToJson(List<RuleMatch> matches,
List<RuleMatch> hiddenMatches,
String text,
int contextSize,
DetectedLanguage detectedLang,
String incompleteResultsReason) |
String |
RuleMatchesAsJsonSerializer.ruleMatchesToJson(List<RuleMatch> matches,
String text,
int contextSize,
DetectedLanguage detectedLang) |
String |
RuleMatchesAsJsonSerializer.ruleMatchesToJson2(List<CheckResults> res,
List<RuleMatch> hiddenMatches,
AnnotatedText text,
int contextSize,
DetectedLanguage detectedLang,
String incompleteResultsReason,
boolean showPremiumHint,
JLanguageTool.Mode mode) |