|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectRule
WordRepeatRule
GermanWordRepeatRule
public class GermanWordRepeatRule
Check if a word is repeated twice, taking into account an exception for German where e.g. "..., die die ..." is often okay.
| Constructor Summary | |
|---|---|
GermanWordRepeatRule(ResourceBundle messages,
Language language)
|
|
| Method Summary | |
|---|---|
String |
getId()
|
boolean |
ignore(AnalyzedTokenReadings[] tokens,
int position)
Implement this method to return true if there's
a potential word repetition at the current position should be ignored,
i.e. if no error should be created. |
| Methods inherited from class WordRepeatRule |
|---|
getDescription, match, reset |
| Methods inherited from class Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GermanWordRepeatRule(ResourceBundle messages,
Language language)
| Method Detail |
|---|
public String getId()
getId in class WordRepeatRule
public boolean ignore(AnalyzedTokenReadings[] tokens,
int position)
WordRepeatRuletrue if there's
a potential word repetition at the current position should be ignored,
i.e. if no error should be created.
ignore in class WordRepeatRuletokens - the tokens of the sentence currently being checkedposition - the current position in the tokens
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||