org.languagetool.rules.de
Class GermanWordRepeatRule

java.lang.Object
  extended by org.languagetool.rules.Rule
      extended by org.languagetool.rules.WordRepeatRule
          extended by 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

Field Summary
 
Fields inherited from class org.languagetool.rules.Rule
messages
 
Constructor Summary
GermanWordRepeatRule(ResourceBundle messages, Language language)
           
 
Method Summary
 String getId()
           
 boolean ignore(AnalyzedTokenReadings[] tokens, int position)
           
 
Methods inherited from class org.languagetool.rules.WordRepeatRule
getDescription, match, reset
 
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
 

Constructor Detail

GermanWordRepeatRule

public GermanWordRepeatRule(ResourceBundle messages,
                            Language language)
Method Detail

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.