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 IncorrectExample |
Example.wrong(String example)
Create an example text (usually just one sentence) with an error - the error must be marked with {@code
|
Modifier and Type | Method and Description |
---|---|
List<IncorrectExample> |
Rule.getIncorrectExamples()
Get example sentences that are incorrect and thus will 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.setIncorrectExamples(List<IncorrectExample> incorrectExamples)
Set the examples that are incorrect and thus do 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<IncorrectExample> |
XMLRuleHandler.incorrectExamples |
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) |