|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectRule
GermanRule
WordCoherencyRule
public class WordCoherencyRule
A rule that matches words for which two different spellings are used
throughout the document. Currently only implemented for German. Loads
the relevant word from rules/de/coherency.txt.
Note that this should not be used for language variations like American English vs. British English or German "alte Rechtschreibung" vs. "neue Rechtschreibung" -- that's the task of a spell checker.
| Constructor Summary | |
|---|---|
WordCoherencyRule(ResourceBundle messages)
|
|
| Method Summary | |
|---|---|
String |
getDescription()
|
String |
getId()
An ASCII-only string used to identify the rule in e.g. configuration files. |
RuleMatch[] |
match(AnalyzedSentence text)
Check whether the given text matches this error rule, i.e. whether the text contains this error. |
void |
reset()
If a rule keeps its state over more than the check of one sentence, this must be implemented so the internal state is reset. |
| Methods inherited from class Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WordCoherencyRule(ResourceBundle messages)
throws IOException
IOException| Method Detail |
|---|
public String getId()
Rule
getId in class Rulepublic String getDescription()
getDescription in class Rulepublic RuleMatch[] match(AnalyzedSentence text)
Rule
match in class Ruletext - a pre-analyzed sentence
public void reset()
Rule
reset in class Rule
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||