| Modifier and Type | Method and Description |
|---|---|
AnalyzedSentence |
AnalyzedSentence.copy(AnalyzedSentence sentence)
The method copies
AnalyzedSentence and returns the copy. |
AnalyzedSentence |
JLanguageTool.getAnalyzedSentence(String sentence)
Tokenizes the given
sentence into words and analyzes it,
and then disambiguates POS tags. |
AnalyzedSentence |
JLanguageTool.getRawAnalyzedSentence(String sentence)
Tokenizes the given
sentence into words and analyzes it. |
| Modifier and Type | Method and Description |
|---|---|
protected List<AnalyzedSentence> |
JLanguageTool.analyzeSentences(List<String> sentences) |
protected List<AnalyzedSentence> |
MultiThreadedJLanguageTool.analyzeSentences(List<String> sentences) |
List<AnalyzedSentence> |
JLanguageTool.analyzeText(String text)
Use this method if you want to access LanguageTool's otherwise
internal analysis of the text.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
AnalyzedSentence |
AnalyzedSentence.copy(AnalyzedSentence sentence)
The method copies
AnalyzedSentence and returns the copy. |
protected void |
JLanguageTool.printSentenceInfo(AnalyzedSentence analyzedSentence) |
protected void |
JLanguageTool.rememberUnknownWords(AnalyzedSentence analyzedText) |
| Modifier and Type | Method and Description |
|---|---|
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[] |
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) |
| Modifier and Type | Method and Description |
|---|---|
RuleMatch[] |
GenericUnpairedBracketsRule.match(List<AnalyzedSentence> sentences) |
RuleMatch[] |
TextLevelRule.match(List<AnalyzedSentence> sentence) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
BitextRule.getPureText(AnalyzedSentence sentence) |
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 |
|---|---|
boolean |
PatternRule.canBeIgnoredFor(AnalyzedSentence sentence)
A fast check whether this rule can be ignored for the given sentence
because it can never match.
|
RuleMatch[] |
AbstractPatternRule.match(AnalyzedSentence sentence) |
RuleMatch[] |
PatternRule.match(AnalyzedSentence sentence) |
| 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 |
|---|---|
AnalyzedSentence |
Disambiguator.disambiguate(AnalyzedSentence input)
If possible, filters out the wrong POS tags.
|
AnalyzedSentence |
MultiWordChunker.disambiguate(AnalyzedSentence input)
Implements multiword POS tags, e.g., <ELLIPSIS> for ellipsis (...)
|
| Modifier and Type | Method and Description |
|---|---|
AnalyzedSentence |
Disambiguator.disambiguate(AnalyzedSentence input)
If possible, filters out the wrong POS tags.
|
AnalyzedSentence |
MultiWordChunker.disambiguate(AnalyzedSentence input)
Implements multiword POS tags, e.g., <ELLIPSIS> for ellipsis (...)
|
| Modifier and Type | Method and Description |
|---|---|
AnalyzedSentence |
XmlRuleDisambiguator.disambiguate(AnalyzedSentence input) |
AnalyzedSentence |
DisambiguationPatternRule.replace(AnalyzedSentence sentence)
Performs disambiguation on the source sentence.
|
| Modifier and Type | Method and Description |
|---|---|
AnalyzedSentence |
XmlRuleDisambiguator.disambiguate(AnalyzedSentence input) |
AnalyzedSentence |
DisambiguationPatternRule.replace(AnalyzedSentence sentence)
Performs disambiguation on the source sentence.
|
| Modifier and Type | Method and Description |
|---|---|
AnalyzedSentence |
DemoDisambiguator.disambiguate(AnalyzedSentence input) |
| Modifier and Type | Method and Description |
|---|---|
AnalyzedSentence |
DemoDisambiguator.disambiguate(AnalyzedSentence input) |