org.languagetool.rules.de
Class GermanWordRepeatRule
java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.WordRepeatRule
org.languagetool.rules.de.GermanWordRepeatRule
public class GermanWordRepeatRule
- extends WordRepeatRule
Check if a word is repeated twice, taking into account an exception
for German where e.g. "..., die die ..." is often okay.
- Author:
- Daniel Naber
| Fields inherited from class org.languagetool.rules.Rule |
messages |
| Methods inherited from class org.languagetool.rules.Rule |
addRuleMatch, clearMatches, getCategory, getCorrectExamples, getIncorrectExamples, getLocQualityIssueType, getMatches, getMatchesIndex, getUrl, isDefaultOff, isInMatches, isInRemoved, isParagraphBackTrack, isSpellingRule, setAsDeleted, setCategory, setCorrectExamples, setDefaultOff, setIncorrectExamples, setLocQualityIssueType, setParagraphBackTrack, setUrl, supportsLanguage, toRuleMatchArray |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GermanWordRepeatRule
public GermanWordRepeatRule(ResourceBundle messages,
Language language)
getId
public String getId()
- Overrides:
getId in class WordRepeatRule
ignore
public boolean ignore(AnalyzedTokenReadings[] tokens,
int position)
- Overrides:
ignore in class WordRepeatRule
Copyright © 2013. All Rights Reserved.