| Package | Description |
|---|---|
| org.languagetool.rules | |
| org.languagetool.rules.patterns |
| 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,
String correctSentence)
Convenience method to add 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.
|
| Modifier and Type | Field and Description |
|---|---|
protected List<IncorrectExample> |
XMLRuleHandler.incorrectExamples |