org.languagetool.rules.de
Class VerbAgreementRule

java.lang.Object
  extended by org.languagetool.rules.Rule
      extended by org.languagetool.rules.de.GermanRule
          extended by org.languagetool.rules.de.VerbAgreementRule

public class VerbAgreementRule
extends GermanRule

Simple agreement checker for German verbs and subject. Checks agreement in:

TODO wenn nur ein mögliches finites Verb -> das nehmen (Max machen das.) Sie (i>1) bei ich/du/er/wir sofort prüfen, damit alle vorkommen geprüft werden (Ich geht jetzt nach Hause und dort gehe ich sofort unter die Dusche.) [aber: isNear] Alle Verbvorkommen merken (Er präsentieren wollte und Video hätte keine Pläne.)

Author:
Markus Brenneis

Field Summary
 
Fields inherited from class org.languagetool.rules.Rule
messages
 
Constructor Summary
VerbAgreementRule(ResourceBundle messages)
           
 
Method Summary
 String getDescription()
           
 String getId()
           
 RuleMatch[] match(AnalyzedSentence text)
           
 void 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

VerbAgreementRule

public VerbAgreementRule(ResourceBundle messages)
Method Detail

getId

public String getId()
Specified by:
getId in class Rule

getDescription

public String getDescription()
Specified by:
getDescription in class Rule

match

public RuleMatch[] match(AnalyzedSentence text)
Specified by:
match in class Rule

reset

public void reset()
Specified by:
reset in class Rule


Copyright © 2013. All Rights Reserved.