Package | Description |
---|---|
org.languagetool | |
org.languagetool.dev.errorcorpus | |
org.languagetool.markup | |
org.languagetool.rules | |
org.languagetool.tools |
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.
|
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) |
CheckResults |
JLanguageTool.check2(AnnotatedText annotatedText,
boolean tokenizeText,
JLanguageTool.ParagraphHandling paraMode,
RuleMatchListener listener,
JLanguageTool.Mode mode,
JLanguageTool.Level level,
Long textSessionID) |
CheckResults |
JLanguageTool.check2(AnnotatedText annotatedText,
boolean tokenizeText,
JLanguageTool.ParagraphHandling paraMode,
RuleMatchListener listener,
JLanguageTool.Mode mode,
JLanguageTool.Level level,
Set<ToneTag> toneTags,
Long textSessionID) |
protected CheckResults |
JLanguageTool.checkInternal(AnnotatedText annotatedText,
JLanguageTool.ParagraphHandling paraMode,
RuleMatchListener listener,
JLanguageTool.Mode mode,
JLanguageTool.Level level,
Long textSessionID,
List<String> sentences,
List<AnalyzedSentence> analyzedSentences) |
protected CheckResults |
JLanguageTool.checkInternal(AnnotatedText annotatedText,
JLanguageTool.ParagraphHandling paraMode,
RuleMatchListener listener,
JLanguageTool.Mode mode,
JLanguageTool.Level level,
Set<ToneTag> toneTags,
Long textSessionID,
List<String> sentences,
List<AnalyzedSentence> analyzedSentences) |
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) |
static List<SentenceRange> |
SentenceRange.getRangesFromSentences(AnnotatedText annotatedText,
List<String> sentences) |
static boolean |
Premium.isPremiumStatusCheck(AnnotatedText text) |
List<RuleMatch> |
Language.mergeSuggestions(List<RuleMatch> ruleMatches,
AnnotatedText text,
Set<String> enabledRules)
This function is called by JLanguageTool before CleanOverlappingFilter removes overlapping ruleMatches
|
protected CheckResults |
MultiThreadedJLanguageTool.performCheck(List<AnalyzedSentence> analyzedSentences,
List<String> sentenceTexts,
RuleSet ruleSet,
JLanguageTool.ParagraphHandling paraMode,
AnnotatedText annotatedText,
RuleMatchListener listener,
JLanguageTool.Mode mode,
JLanguageTool.Level level,
boolean checkRemoteRules,
Set<ToneTag> toneTags) |
protected CheckResults |
JLanguageTool.performCheck(List<AnalyzedSentence> analyzedSentences,
List<String> sentenceTexts,
RuleSet ruleSet,
JLanguageTool.ParagraphHandling paraMode,
AnnotatedText annotatedText,
RuleMatchListener listener,
JLanguageTool.Mode mode,
JLanguageTool.Level level,
boolean checkRemoteRules,
Set<ToneTag> toneTags) |
Modifier and Type | Method and Description |
---|---|
AnnotatedText |
ErrorSentence.getAnnotatedText() |
Modifier and Type | Method and Description |
---|---|
AnnotatedText |
AnnotatedTextBuilder.build()
Create the annotated text to be passed into
JLanguageTool.check(AnnotatedText) . |
Modifier and Type | Method and Description |
---|---|
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) |
Map<String,List<RuleMatch>> |
DictionarySpellMatchFilter.getPhrases(List<RuleMatch> ruleMatches,
AnnotatedText text) |
RuleMatch[] |
TextLevelRule.match(List<AnalyzedSentence> sentences,
AnnotatedText annotatedText) |
Modifier and Type | Method and Description |
---|---|
String |
RuleMatchesAsJsonSerializer.ruleMatchesToJson(List<RuleMatch> matches,
List<RuleMatch> hiddenMatches,
AnnotatedText text,
int contextSize,
DetectedLanguage detectedLang,
String incompleteResultsReason,
boolean showPremiumHint) |
String |
RuleMatchesAsJsonSerializer.ruleMatchesToJson2(List<CheckResults> res,
List<RuleMatch> hiddenMatches,
AnnotatedText text,
int contextSize,
DetectedLanguage detectedLang,
String incompleteResultsReason,
boolean showPremiumHint,
JLanguageTool.Mode mode) |