|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectRule
SimpleReplaceRule
public class SimpleReplaceRule
A rule that matches words or phrases which should not be used
and suggests correct ones instead. Currently only implemented for Ukrainian.
Loads the relevant word from rules/uk/replace.txt.
| Constructor Summary | |
|---|---|
SimpleReplaceRule(ResourceBundle messages)
|
|
| Method Summary | |
|---|---|
String |
getDescription()
|
String |
getId()
|
RuleMatch[] |
match(AnalyzedSentence text)
Check whether the given text matche this error rule, i.e. whether the text contains this error. |
void |
reset()
If a rule keeps it state over more than the check of one sentence, this must be implemented so the internal state it reset. |
| Methods inherited from class Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleReplaceRule(ResourceBundle messages)
throws IOException
IOException| Method Detail |
|---|
public String getId()
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 | |||||||||