| Modifier and Type | Method and 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.
|
| Modifier and Type | Method and Description |
|---|---|
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(String text)
The main check method.
|
List<RuleMatch> |
JLanguageTool.check(String text,
boolean tokenizeText,
JLanguageTool.ParagraphHandling paraMode) |
List<RuleMatch> |
JLanguageTool.checkAnalyzedSentence(JLanguageTool.ParagraphHandling paraMode,
List<Rule> allRules,
int charCount,
int lineCount,
int columnCount,
String sentence,
AnalyzedSentence analyzedSentence)
Deprecated.
will be made non-public, please use one of the
JLanguageTool.check(String) methods instead (deprecated since 3.0) |
List<RuleMatch> |
JLanguageTool.checkAnalyzedSentence(JLanguageTool.ParagraphHandling paraMode,
List<Rule> rules,
int charCount,
int lineCount,
int columnCount,
String sentence,
AnalyzedSentence analyzedSentence,
AnnotatedText annotatedText)
This is an internal method that's public only for technical reasons, please use one
of the
JLanguageTool.check(String) methods instead. |
protected List<RuleMatch> |
JLanguageTool.performCheck(List<AnalyzedSentence> analyzedSentences,
List<String> sentences,
List<Rule> allRules,
JLanguageTool.ParagraphHandling paraMode,
AnnotatedText annotatedText) |
protected List<RuleMatch> |
MultiThreadedJLanguageTool.performCheck(List<AnalyzedSentence> analyzedSentences,
List<String> sentences,
List<Rule> allRules,
JLanguageTool.ParagraphHandling paraMode,
AnnotatedText annotatedText) |
| Modifier and Type | Method and 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.
|
| Modifier and Type | Method and Description |
|---|---|
RuleMatch |
AbstractDateCheckFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> args,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
PartialPosTagFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> args,
AnalyzedTokenReadings[] patternTokens) |
protected RuleMatch |
WordRepeatRule.createRuleMatch(String prevToken,
String token,
int prevPos,
int pos,
String msg) |
RuleMatch[] |
WhitespaceBeforePunctuationRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
ConfusionProbabilityRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
TextLevelRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
WordRepeatBeginningRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
SentenceWhitespaceRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
AbstractSimpleReplaceRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
AbstractCompoundRule.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[] |
AbstractSimpleReplaceRule2.match(AnalyzedSentence sentence) |
RuleMatch[] |
CommaWhitespaceRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
DoublePunctuationRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
WrongWordInContextRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
AdvancedWordRepeatRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
MultipleWhitespaceRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
LongSentenceRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
WordRepeatRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
AbstractWordCoherencyRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
AbstractSpaceBeforeRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
AbstractPunctuationCheckRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
UppercaseSentenceStartRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
GenericUnpairedBracketsRule.match(List<AnalyzedSentence> sentences) |
RuleMatch[] |
TextLevelRule.match(List<AnalyzedSentence> sentence) |
protected RuleMatch[] |
Rule.toRuleMatchArray(List<RuleMatch> ruleMatches) |
| Modifier and Type | Method and Description |
|---|---|
List<RuleMatch> |
RuleMatchFilter.filter(List<RuleMatch> ruleMatches) |
List<RuleMatch> |
SameRuleGroupFilter.filter(List<RuleMatch> ruleMatches) |
List<RuleMatch> |
RuleWithMaxFilter.filter(List<RuleMatch> ruleMatches) |
| Modifier and Type | Method and Description |
|---|---|
RuleMatch |
AbstractDateCheckFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> args,
AnalyzedTokenReadings[] patternTokens) |
RuleMatch |
PartialPosTagFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> args,
AnalyzedTokenReadings[] patternTokens) |
int |
RuleMatch.compareTo(RuleMatch other)
Compare by start position.
|
| Modifier and Type | Method and Description |
|---|---|
List<RuleMatch> |
RuleMatchFilter.filter(List<RuleMatch> ruleMatches) |
List<RuleMatch> |
SameRuleGroupFilter.filter(List<RuleMatch> ruleMatches) |
List<RuleMatch> |
RuleWithMaxFilter.filter(List<RuleMatch> ruleMatches) |
protected RuleMatch[] |
Rule.toRuleMatchArray(List<RuleMatch> ruleMatches) |
| Modifier and Type | Method and Description |
|---|---|
RuleMatch[] |
BitextRule.match(AnalyzedSentence sentence)
This method makes no sense for bitext, thus it always returns
null. |
RuleMatch[] |
DifferentLengthRule.match(AnalyzedSentence sourceText,
AnalyzedSentence targetText) |
RuleMatch[] |
DifferentPunctuationRule.match(AnalyzedSentence sourceText,
AnalyzedSentence targetText) |
abstract RuleMatch[] |
BitextRule.match(AnalyzedSentence sourceText,
AnalyzedSentence targetText) |
RuleMatch[] |
SameTranslationRule.match(AnalyzedSentence sourceText,
AnalyzedSentence targetText) |
| Modifier and Type | Method and Description |
|---|---|
RuleMatch |
RuleFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
AnalyzedTokenReadings[] patternTokens)
Returns the original rule match or a modified one, or
null
if the rule match is filtered out. |
RuleMatch[] |
AbstractPatternRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
PatternRule.match(AnalyzedSentence sentence) |
| Modifier and Type | Method and Description |
|---|---|
RuleMatch |
RuleFilter.acceptRuleMatch(RuleMatch match,
Map<String,String> arguments,
AnalyzedTokenReadings[] patternTokens)
Returns the original rule match or a modified one, or
null
if the rule match is filtered out. |
| 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 |
|---|---|
abstract RuleMatch[] |
SpellingCheckRule.match(AnalyzedSentence sentence) |
| 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) |
| 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 |
RuleAsXmlSerializer.ruleMatchesToXml(List<RuleMatch> ruleMatches,
String text,
int contextSize,
Language lang)
Get an XML representation of the given rule matches.
|
String |
RuleAsXmlSerializer.ruleMatchesToXml(List<RuleMatch> ruleMatches,
String text,
int contextSize,
Language lang,
Language motherTongue)
Get an XML representation of the given rule matches.
|
String |
RuleAsXmlSerializer.ruleMatchesToXml(List<RuleMatch> ruleMatches,
String text,
int contextSize,
StringTools.XmlPrintMode xmlMode,
Language lang,
List<String> unknownWords)
Get an XML representation of the given rule matches.
|
String |
RuleAsXmlSerializer.ruleMatchesToXmlSnippet(List<RuleMatch> ruleMatches,
String text,
int contextSize)
Get the XML snippet (i.e. not a complete XML document) for the given rules.
|