Package | Description |
---|---|
org.languagetool.rules | |
org.languagetool.rules.de | |
org.languagetool.rules.patterns | |
org.languagetool.rules.spelling.hunspell | |
org.languagetool.rules.uk |
Modifier and Type | Method and Description |
---|---|
static CorrectExample |
Example.fixed(String example)
Create an example text (usually just one sentence) without an error - the fixed error (compared to the text created
with
Example.wrong(String) ) can be marked with {@code |
Modifier and Type | Method and Description |
---|---|
List<CorrectExample> |
Rule.getCorrectExamples()
Get example sentences that are correct and thus will not match this rule.
|
Modifier and Type | Method and Description |
---|---|
protected void |
Rule.addExamplePair(IncorrectExample incorrectSentence,
CorrectExample correctSentence)
Convenience method to add a pair of sentences: an incorrect sentence and the same sentence
with the error corrected.
|
protected void |
Rule.setExamplePair(IncorrectExample incorrectSentence,
CorrectExample correctSentence)
Convenience method to set a pair of sentences: an incorrect sentence and the same sentence
with the error corrected.
|
Modifier and Type | Method and Description |
---|---|
void |
Rule.setCorrectExamples(List<CorrectExample> correctExamples)
Set the examples that are correct and thus do not trigger the rule.
|
Constructor and Description |
---|
CommaWhitespaceRule(ResourceBundle messages,
IncorrectExample incorrectExample,
CorrectExample correctExample) |
CommaWhitespaceRule(ResourceBundle messages,
IncorrectExample incorrectExample,
CorrectExample correctExample,
URL url) |
UppercaseSentenceStartRule(ResourceBundle messages,
Language language,
IncorrectExample incorrectExample,
CorrectExample correctExample) |
UppercaseSentenceStartRule(ResourceBundle messages,
Language language,
IncorrectExample incorrectExample,
CorrectExample correctExample,
URL url) |
Constructor and Description |
---|
GermanCommaWhitespaceRule(ResourceBundle messages,
IncorrectExample incorrectExample,
CorrectExample correctExample,
URL url) |
Modifier and Type | Field and Description |
---|---|
protected List<CorrectExample> |
XMLRuleHandler.antipatternExamples |
protected List<CorrectExample> |
XMLRuleHandler.antipatternForRuleGroupsExamples |
protected List<CorrectExample> |
XMLRuleHandler.correctExamples |
Constructor and Description |
---|
HunspellNoSuggestionRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages,
IncorrectExample incorrectExample,
CorrectExample correctedExample) |
Constructor and Description |
---|
UkrainianCommaWhitespaceRule(ResourceBundle messages,
IncorrectExample incorrectExample,
CorrectExample correctExample) |
UkrainianUppercaseSentenceStartRule(ResourceBundle messages,
Language language,
IncorrectExample incorrectExample,
CorrectExample correctExample) |