org.languagetool.rules.de
Class VerbAgreementRule
java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.de.GermanRule
org.languagetool.rules.de.VerbAgreementRule
public class VerbAgreementRule
- extends GermanRule
Simple agreement checker for German verbs and subject. Checks agreement in:
- VER:1:SIN w/o ich: e.g. "Max bin da." (incorrect) [same for VER:2:SIN w/o du, VER:1:PLU w/o wir]
- ich + VER:[123]:.* (not VER:1:SIN): e.g. "ich bist" (incorrect) [same for du, er, wir]
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
| 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 |
VerbAgreementRule
public VerbAgreementRule(ResourceBundle messages)
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.