Uses of Class
org.languagetool.rules.RuleMatch
-
-
Uses of RuleMatch in org.languagetool
Methods in org.languagetool that return RuleMatch Modifier and Type Method Description 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.Methods in org.languagetool that return types with arguments of type RuleMatch Modifier and Type Method Description protected List<RuleMatch>
JLanguageTool. applyCustomFilters(List<RuleMatch> matches, AnnotatedText text)
should be called just once with complete list of matches, before returning them to callerList<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. 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)
The main check method.List<RuleMatch>
JLanguageTool. check(AnnotatedText text, RuleMatchListener listener)
List<RuleMatch>
JLanguageTool. checkAnalyzedSentence(JLanguageTool.ParagraphHandling paraMode, List<Rule> rules, AnalyzedSentence analyzedSentence)
This is an internal method that's public only for technical reasons, please use one of theJLanguageTool.check(String)
methods instead.List<RuleMatch>
ResultCache. getIfPresent(org.languagetool.InputSentence key)
com.google.common.cache.Cache<org.languagetool.InputSentence,List<RuleMatch>>
ResultCache. getMatchesCache()
protected List<RuleMatch>
JLanguageTool. performCheck(List<AnalyzedSentence> analyzedSentences, List<String> sentences, List<Rule> allRules, JLanguageTool.ParagraphHandling paraMode, AnnotatedText annotatedText, JLanguageTool.Mode mode)
protected List<RuleMatch>
JLanguageTool. performCheck(List<AnalyzedSentence> analyzedSentences, List<String> sentences, List<Rule> allRules, JLanguageTool.ParagraphHandling paraMode, AnnotatedText annotatedText, RuleMatchListener listener, JLanguageTool.Mode mode)
protected List<RuleMatch>
MultiThreadedJLanguageTool. performCheck(List<AnalyzedSentence> analyzedSentences, List<String> sentences, List<Rule> allRules, JLanguageTool.ParagraphHandling paraMode, AnnotatedText annotatedText, RuleMatchListener listener, JLanguageTool.Mode mode)
Methods in org.languagetool with parameters of type RuleMatch Modifier and Type Method Description 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 everyRuleMatch
found.Method parameters in org.languagetool with type arguments of type RuleMatch Modifier and Type Method Description protected List<RuleMatch>
JLanguageTool. applyCustomFilters(List<RuleMatch> matches, AnnotatedText text)
should be called just once with complete list of matches, before returning them to callervoid
ResultCache. put(org.languagetool.InputSentence key, List<RuleMatch> sentenceMatches)
-
Uses of RuleMatch in org.languagetool.rules
Methods in org.languagetool.rules that return RuleMatch Modifier and Type Method Description RuleMatch
AbstractDateCheckFilter. acceptRuleMatch(RuleMatch match, Map<String,String> args, int patternTokenPos, AnalyzedTokenReadings[] patternTokens)
RuleMatch
AbstractFutureDateFilter. acceptRuleMatch(RuleMatch match, Map<String,String> args, int patternTokenPos, AnalyzedTokenReadings[] patternTokens)
RuleMatch
AbstractNewYearDateFilter. acceptRuleMatch(RuleMatch match, Map<String,String> args, int patternTokenPos, AnalyzedTokenReadings[] patternTokens)
@Nullable RuleMatch
DateRangeChecker. acceptRuleMatch(RuleMatch match, Map<String,String> arguments, int patternTokenPos, AnalyzedTokenReadings[] patternTokens)
RuleMatch
PartialPosTagFilter. acceptRuleMatch(RuleMatch match, Map<String,String> args, int patternTokenPos, AnalyzedTokenReadings[] patternTokens)
@Nullable RuleMatch
ShortenedYearRangeChecker. 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
YMDDateHelper. correctDate(RuleMatch match, Map<String,String> args)
protected RuleMatch
AbstractSimpleReplaceRule. createRuleMatch(AnalyzedTokenReadings tokenReadings, List<String> replacements, AnalyzedSentence sentence)
protected RuleMatch
WordRepeatRule. createRuleMatch(String prevToken, String token, int prevPos, int pos, String msg, AnalyzedSentence sentence)
RuleMatch[]
AbstractCompoundRule. match(AnalyzedSentence sentence)
RuleMatch[]
AbstractDashRule. match(AnalyzedSentence sentence)
RuleMatch[]
AbstractFillerWordsRule. match(List<AnalyzedSentence> sentences)
RuleMatch[]
AbstractPunctuationCheckRule. match(AnalyzedSentence sentence)
RuleMatch[]
AbstractSimpleReplaceRule. match(AnalyzedSentence sentence)
RuleMatch[]
AbstractSimpleReplaceRule2. match(AnalyzedSentence sentence)
RuleMatch[]
AbstractSpaceBeforeRule. match(AnalyzedSentence sentence)
RuleMatch[]
AbstractStyleRepeatedWordRule. match(List<AnalyzedSentence> sentences)
RuleMatch[]
AbstractUnitConversionRule. match(AnalyzedSentence sentence)
RuleMatch[]
AbstractWordCoherencyRule. match(List<AnalyzedSentence> sentences)
RuleMatch[]
AdvancedWordRepeatRule. match(AnalyzedSentence sentence)
RuleMatch[]
CommaWhitespaceRule. match(AnalyzedSentence sentence)
RuleMatch[]
DemoRule. match(AnalyzedSentence sentence)
RuleMatch[]
DoublePunctuationRule. match(AnalyzedSentence sentence)
RuleMatch[]
EmptyLineRule. match(List<AnalyzedSentence> sentences)
RuleMatch[]
GenericUnpairedBracketsRule. match(List<AnalyzedSentence> sentences)
RuleMatch[]
LongParagraphRule. match(List<AnalyzedSentence> sentences)
RuleMatch[]
LongSentenceRule. match(AnalyzedSentence sentence)
RuleMatch[]
MultipleWhitespaceRule. match(List<AnalyzedSentence> sentences)
RuleMatch[]
OpenNMTRule. match(AnalyzedSentence sentence)
RuleMatch[]
ParagraphRepeatBeginningRule. match(List<AnalyzedSentence> sentences)
RuleMatch[]
PunctuationMarkAtParagraphEnd. match(List<AnalyzedSentence> sentences)
RuleMatch[]
ReadabilityRule. match(List<AnalyzedSentence> sentences)
abstract RuleMatch[]
Rule. match(AnalyzedSentence sentence)
Check whether the given sentence matches this error rule, i.e.RuleMatch[]
SentenceWhitespaceRule. match(List<AnalyzedSentence> sentences)
abstract RuleMatch[]
TextLevelRule. match(List<AnalyzedSentence> sentences)
Deprecated.useTextLevelRule.match(List, AnnotatedText)
insteadRuleMatch[]
TextLevelRule. match(List<AnalyzedSentence> sentences, AnnotatedText annotatedText)
RuleMatch[]
TextLevelRule. match(AnalyzedSentence sentence)
RuleMatch[]
UppercaseSentenceStartRule. match(List<AnalyzedSentence> sentences)
RuleMatch[]
WhiteSpaceAtBeginOfParagraph. match(AnalyzedSentence sentence)
RuleMatch[]
WhiteSpaceBeforeParagraphEnd. match(List<AnalyzedSentence> sentences)
RuleMatch[]
WhitespaceBeforePunctuationRule. match(AnalyzedSentence sentence)
RuleMatch[]
WordRepeatBeginningRule. match(List<AnalyzedSentence> sentences)
RuleMatch[]
WordRepeatRule. match(AnalyzedSentence sentence)
RuleMatch[]
WrongWordInContextRule. match(AnalyzedSentence sentence)
protected RuleMatch[]
Rule. toRuleMatchArray(List<RuleMatch> ruleMatches)
Methods in org.languagetool.rules that return types with arguments of type RuleMatch Modifier and Type Method Description List<RuleMatch>
CleanOverlappingFilter. filter(List<RuleMatch> ruleMatches)
List<RuleMatch>
DictionaryMatchFilter. filter(List<RuleMatch> ruleMatches, AnnotatedText text)
List<RuleMatch>
LanguageDependentFilter. filter(List<RuleMatch> ruleMatches)
default List<RuleMatch>
RuleMatchFilter. filter(List<RuleMatch> ruleMatches)
Deprecated.use and implementfilter(List<RuleMatch> ruleMatches, AnnotatedText text)
default List<RuleMatch>
RuleMatchFilter. filter(List<RuleMatch> ruleMatches, AnnotatedText text)
List<RuleMatch>
RuleWithMaxFilter. filter(List<RuleMatch> ruleMatches)
List<RuleMatch>
SameRuleGroupFilter. filter(List<RuleMatch> ruleMatches)
protected List<RuleMatch>
AbstractSimpleReplaceRule. findMatches(AnalyzedTokenReadings tokenReadings, AnalyzedSentence sentence)
Methods in org.languagetool.rules with parameters of type RuleMatch Modifier and Type Method Description RuleMatch
AbstractDateCheckFilter. acceptRuleMatch(RuleMatch match, Map<String,String> args, int patternTokenPos, AnalyzedTokenReadings[] patternTokens)
RuleMatch
AbstractFutureDateFilter. acceptRuleMatch(RuleMatch match, Map<String,String> args, int patternTokenPos, AnalyzedTokenReadings[] patternTokens)
RuleMatch
AbstractNewYearDateFilter. acceptRuleMatch(RuleMatch match, Map<String,String> args, int patternTokenPos, AnalyzedTokenReadings[] patternTokens)
@Nullable RuleMatch
DateRangeChecker. acceptRuleMatch(RuleMatch match, Map<String,String> arguments, int patternTokenPos, AnalyzedTokenReadings[] patternTokens)
RuleMatch
PartialPosTagFilter. acceptRuleMatch(RuleMatch match, Map<String,String> args, int patternTokenPos, AnalyzedTokenReadings[] patternTokens)
@Nullable RuleMatch
ShortenedYearRangeChecker. acceptRuleMatch(RuleMatch match, Map<String,String> arguments, int patternTokenPos, AnalyzedTokenReadings[] patternTokens)
RuleMatch
WhitespaceCheckFilter. acceptRuleMatch(RuleMatch match, Map<String,String> arguments, int patternTokenPos, AnalyzedTokenReadings[] patternTokens)
int
RuleMatch. compareTo(RuleMatch other)
Compare by start position.RuleMatch
YMDDateHelper. correctDate(RuleMatch match, Map<String,String> args)
void
RuleMatch. setOffsetPosition(int fromPos, int toPos, RuleMatch ruleMatch)
Method parameters in org.languagetool.rules with type arguments of type RuleMatch Modifier and Type Method Description List<RuleMatch>
CleanOverlappingFilter. filter(List<RuleMatch> ruleMatches)
List<RuleMatch>
DictionaryMatchFilter. filter(List<RuleMatch> ruleMatches, AnnotatedText text)
List<RuleMatch>
LanguageDependentFilter. filter(List<RuleMatch> ruleMatches)
default List<RuleMatch>
RuleMatchFilter. filter(List<RuleMatch> ruleMatches)
Deprecated.use and implementfilter(List<RuleMatch> ruleMatches, AnnotatedText text)
default List<RuleMatch>
RuleMatchFilter. filter(List<RuleMatch> ruleMatches, AnnotatedText text)
List<RuleMatch>
RuleWithMaxFilter. filter(List<RuleMatch> ruleMatches)
List<RuleMatch>
SameRuleGroupFilter. filter(List<RuleMatch> ruleMatches)
protected RuleMatch[]
Rule. toRuleMatchArray(List<RuleMatch> ruleMatches)
Constructors in org.languagetool.rules with parameters of type RuleMatch Constructor Description RuleMatch(RuleMatch clone)
RuleMatch(RuleMatch clone, List<String> replacements)
-
Uses of RuleMatch in org.languagetool.rules.bitext
Methods in org.languagetool.rules.bitext that return RuleMatch Modifier and Type Method Description @Nullable RuleMatch[]
BitextRule. match(AnalyzedSentence sentence)
This method makes no sense for bitext, thus it always returnsnull
.abstract RuleMatch[]
BitextRule. match(AnalyzedSentence sourceText, AnalyzedSentence targetText)
RuleMatch[]
DifferentLengthRule. match(AnalyzedSentence sourceText, AnalyzedSentence targetText)
RuleMatch[]
DifferentPunctuationRule. match(AnalyzedSentence sourceText, AnalyzedSentence targetText)
RuleMatch[]
SameTranslationRule. match(AnalyzedSentence sourceText, AnalyzedSentence targetText)
-
Uses of RuleMatch in org.languagetool.rules.neuralnetwork
Methods in org.languagetool.rules.neuralnetwork that return RuleMatch Modifier and Type Method Description RuleMatch[]
NeuralNetworkRule. match(AnalyzedSentence sentence)
-
Uses of RuleMatch in org.languagetool.rules.ngrams
Methods in org.languagetool.rules.ngrams that return RuleMatch Modifier and Type Method Description RuleMatch[]
ConfusionProbabilityRule. match(AnalyzedSentence sentence)
RuleMatch[]
NgramProbabilityRule. match(AnalyzedSentence sentence)
Methods in org.languagetool.rules.ngrams with parameters of type RuleMatch Modifier and Type Method Description protected boolean
NgramProbabilityRule. acceptMatch(RuleMatch match, Probability p, AnalyzedSentence sentence)
Overwrite this method to discard matches by returningfalse
. -
Uses of RuleMatch in org.languagetool.rules.patterns
Methods in org.languagetool.rules.patterns that return RuleMatch Modifier and Type Method Description abstract @Nullable RuleMatch
RuleFilter. acceptRuleMatch(RuleMatch match, Map<String,String> arguments, int patternTokenPos, AnalyzedTokenReadings[] patternTokens)
Returns the original rule match or a modified one, ornull
if the rule match is filtered out.RuleMatch[]
AbstractPatternRule. match(AnalyzedSentence sentence)
RuleMatch[]
PatternRule. match(AnalyzedSentence sentence)
RuleMatch[]
PatternRuleMatcher. match(AnalyzedSentence sentence)
RuleMatch[]
RegexPatternRule. match(AnalyzedSentence sentenceObj)
RuleMatch[]
RuleMatcher. match(AnalyzedSentence sentence)
@Nullable RuleMatch
RuleFilterEvaluator. runFilter(String filterArgs, RuleMatch ruleMatch, AnalyzedTokenReadings[] patternTokens, int patternTokenPos, List<Integer> tokenPositions)
Methods in org.languagetool.rules.patterns with parameters of type RuleMatch Modifier and Type Method Description abstract @Nullable RuleMatch
RuleFilter. acceptRuleMatch(RuleMatch match, Map<String,String> arguments, int patternTokenPos, AnalyzedTokenReadings[] patternTokens)
Returns the original rule match or a modified one, ornull
if the rule match is filtered out.@Nullable RuleMatch
RuleFilterEvaluator. runFilter(String filterArgs, RuleMatch ruleMatch, AnalyzedTokenReadings[] patternTokens, int patternTokenPos, List<Integer> tokenPositions)
-
Uses of RuleMatch in org.languagetool.rules.patterns.bitext
Methods in org.languagetool.rules.patterns.bitext that return RuleMatch Modifier and Type Method Description RuleMatch[]
BitextPatternRule. match(AnalyzedSentence sentence)
This method always returns an empty array.RuleMatch[]
BitextPatternRule. match(AnalyzedSentence sourceSentence, AnalyzedSentence targetSentence)
-
Uses of RuleMatch in org.languagetool.rules.spelling
Methods in org.languagetool.rules.spelling that return RuleMatch Modifier and Type Method 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)
Methods in org.languagetool.rules.spelling with parameters of type RuleMatch Modifier and Type Method Description protected static void
SpellingCheckRule. addSuggestionsToRuleMatch(String word, List<String> userCandidates, List<String> candidates, @Nullable SuggestionsOrderer orderer, RuleMatch match)
Method parameters in org.languagetool.rules.spelling with type arguments of type RuleMatch Modifier and Type Method Description protected RuleMatch
SpellingCheckRule. createWrongSplitMatch(AnalyzedSentence sentence, List<RuleMatch> ruleMatchesSoFar, int pos, String coveredWord, String suggestion1, String suggestion2, int prevPos)
-
Uses of RuleMatch in org.languagetool.rules.spelling.hunspell
Methods in org.languagetool.rules.spelling.hunspell that return RuleMatch Modifier and Type Method Description RuleMatch[]
HunspellRule. match(AnalyzedSentence sentence)
-
Uses of RuleMatch in org.languagetool.rules.spelling.morfologik
Methods in org.languagetool.rules.spelling.morfologik that return RuleMatch Modifier and Type Method Description RuleMatch[]
MorfologikSpellerRule. match(AnalyzedSentence sentence)
Methods in org.languagetool.rules.spelling.morfologik that return types with arguments of type RuleMatch Modifier and Type Method Description protected List<RuleMatch>
MorfologikSpellerRule. getRuleMatches(String word, int startPos, AnalyzedSentence sentence, List<RuleMatch> ruleMatchesSoFar, int idx, AnalyzedTokenReadings[] tokens)
Method parameters in org.languagetool.rules.spelling.morfologik with type arguments of type RuleMatch Modifier and Type Method Description protected List<RuleMatch>
MorfologikSpellerRule. getRuleMatches(String word, int startPos, AnalyzedSentence sentence, List<RuleMatch> ruleMatchesSoFar, int idx, AnalyzedTokenReadings[] tokens)
-
Uses of RuleMatch in org.languagetool.tools
Methods in org.languagetool.tools that return types with arguments of type RuleMatch Modifier and Type Method Description static List<RuleMatch>
Tools. checkBitext(String src, String trg, JLanguageTool srcLt, JLanguageTool trgLt, List<BitextRule> bRules)
Checks the bilingual input (bitext).Method parameters in org.languagetool.tools with type arguments of type RuleMatch Modifier and Type Method Description static String
Tools. correctTextFromMatches(String contents, List<RuleMatch> matches)
String
RuleMatchesAsJsonSerializer. ruleMatchesToJson(List<RuleMatch> matches, String text, int contextSize, DetectedLanguage detectedLang)
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, AnnotatedText text, int contextSize, DetectedLanguage detectedLang, String incompleteResultsReason)
String
RuleMatchAsXmlSerializer. ruleMatchesToXml(List<RuleMatch> ruleMatches, String text, int contextSize, Language lang)
Deprecated.Get an XML representation of the given rule matches.String
RuleMatchAsXmlSerializer. ruleMatchesToXml(List<RuleMatch> ruleMatches, String text, int contextSize, Language lang, Language motherTongue)
Deprecated.Get an XML representation of the given rule matches.String
RuleMatchAsXmlSerializer. ruleMatchesToXml(List<RuleMatch> ruleMatches, String text, int contextSize, StringTools.ApiPrintMode xmlMode, Language lang, List<String> unknownWords)
Deprecated.Get an XML representation of the given rule matches.String
RuleMatchAsXmlSerializer. ruleMatchesToXmlSnippet(List<RuleMatch> ruleMatches, String text, int contextSize)
Deprecated.Get the XML snippet (i.e.
-