| Modifier and Type | Method and Description |
|---|---|
List<Rule> |
JLanguageTool.getAllActiveRules()
Get all active (not disabled) rules for the current language that are built-in or that
have been added using e.g.
|
List<Rule> |
JLanguageTool.getAllRules()
Get all rules for the current language that are built-in or that have been
added using
JLanguageTool.addRule(Rule). |
List<Rule> |
Language.getRelevantLanguageModelRules(ResourceBundle messages,
LanguageModel languageModel)
Get a list of rules that require a
LanguageModel. |
abstract List<Rule> |
Language.getRelevantRules(ResourceBundle messages)
Get the rules classes that should run for texts in this language.
|
| Modifier and Type | Method and Description |
|---|---|
void |
JLanguageTool.addRule(Rule rule)
Add a rule to be used by the next call to the check methods like
JLanguageTool.check(String). |
| 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. |
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 | Class and Description |
|---|---|
class |
AbstractCompoundRule
Checks that compounds (if in the list) are not written as separate words.
|
class |
AbstractPunctuationCheckRule
A rule that matches "
|
class |
AbstractSimpleReplaceRule
A rule that matches words which should not be used and suggests
correct ones instead.
|
class |
AbstractSimpleReplaceRule2
A rule that matches words which should not be used and suggests correct ones instead.
|
class |
AbstractSpaceBeforeRule
An abstract rule that checks if there is a missing space before some conjunctions.
|
class |
AbstractWordCoherencyRule
A rule that matches words for which two different spellings are used
throughout the document.
|
class |
AdvancedWordRepeatRule
Rule for detecting same words in the sentence but not just in a row
|
class |
CommaWhitespaceRule
A rule that matches periods, commas and closing parenthesis preceded by whitespace and
opening parenthesis followed by whitespace.
|
class |
ConfusionProbabilityRule
LanguageTool's homophone confusion check that uses ngram lookups
to decide which word in a confusion set (from
confusion_sets.txt) suits best. |
class |
DoublePunctuationRule
A rule that matches ".."
|
class |
GenericUnpairedBracketsRule
Rule that finds unpaired quotes, brackets etc.
|
class |
LongSentenceRule
A rule that warns on long sentences.
|
class |
MultipleWhitespaceRule
Check if there is duplicated whitespace in a sentence.
|
class |
SentenceWhitespaceRule
Checks that there's whitespace between sentences.
|
class |
TextLevelRule
A rule that considers the complete text, not just one sentence after
the other.
|
class |
UppercaseSentenceStartRule
Checks that a sentence starts with an uppercase letter.
|
class |
WhitespaceBeforePunctuationRule
A rule that matches several punctuation signs such as
: ; and % preceded by whitespace. |
class |
WordRepeatBeginningRule
Check if three successive sentences begin with the same word, e.g.
|
class |
WordRepeatRule
Check if a word is repeated twice, e.g.
|
class |
WrongWordInContextRule
Check if there is a confusion of two words (which might have a similar spelling) depending on the context.
|
| Modifier and Type | Method and Description |
|---|---|
Rule |
RuleMatch.getRule() |
| Constructor and Description |
|---|
RuleMatch(Rule rule,
int fromPos,
int toPos,
String message)
Creates a RuleMatch object, taking the rule that triggered
this match, position of the match and an explanation message.
|
RuleMatch(Rule rule,
int fromPos,
int toPos,
String message,
String shortMessage)
Creates a RuleMatch object, taking the rule that triggered
this match, position of the match and an explanation message.
|
RuleMatch(Rule rule,
int fromPos,
int toPos,
String message,
String shortMessage,
boolean startWithUppercase,
String suggestionsOutMsg)
Creates a RuleMatch object, taking the rule that triggered
this match, position of the match and an explanation message.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BitextRule
Abstract bitext rule class.
|
class |
DifferentLengthRule
Checks if the translation has a really different length than the source
(smaller than 30% or longer by 250%).
|
class |
DifferentPunctuationRule
Checks if the translation has the same ending punctuation as the source.
|
class |
SameTranslationRule
Checks if the translation for segments that have more than two words
is different.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractPatternRule
An Abstract Pattern Rule that describes a pattern of words or part-of-speech tags
used for PatternRule and DisambiguationPatternRule.
|
class |
FalseFriendPatternRule
A pattern rule for finding false friends.
|
class |
PatternRule
A Rule that describes a language error as a simple pattern of words or of
part-of-speech tags.
|
| Modifier and Type | Class and Description |
|---|---|
class |
BitextPatternRule
A bitext pattern rule class.
|
| Modifier and Type | Class and Description |
|---|---|
class |
SpellingCheckRule
An abstract rule for spellchecking rules.
|
| Modifier and Type | Method and Description |
|---|---|
List<String> |
SuggestionExtractor.getSuggestionTokens(Rule rule,
Language language)
Get the tokens of simple suggestions, i.e. those that don't use back references.
|
| Modifier and Type | Class and Description |
|---|---|
class |
CompoundAwareHunspellRule
A spell checker that combines Hunspell und Morfologik spell checking
to support compound words and offer fast suggestions for some misspelled
compound words.
|
class |
HunspellNoSuggestionRule
Like
HunspellRule, but does not offer suggestions for incorrect words
as that is very slow with Hunspell. |
class |
HunspellRule
A hunspell-based spellchecking-rule.
|
| Modifier and Type | Class and Description |
|---|---|
class |
MorfologikSpellerRule |
| Modifier and Type | Class and Description |
|---|---|
class |
DisambiguationPatternRule
A Rule that describes a pattern of words or part-of-speech tags used for
disambiguation.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
Tools.profileRulesOnLine(String contents,
JLanguageTool lt,
Rule rule) |