org.languagetool.rules.de
Class WordCoherencyRule
java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.de.GermanRule
org.languagetool.rules.de.WordCoherencyRule
public class WordCoherencyRule
- extends GermanRule
A rule that matches words for which two different spellings are used
throughout the document. Currently only implemented for German. Loads
the relevant word from rules/de/coherency.txt.
Note that this should not be used for language variations like
American English vs. British English or German "alte Rechtschreibung"
vs. "neue Rechtschreibung" -- that's the task of a spell checker.
- 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 |
WordCoherencyRule
public WordCoherencyRule(ResourceBundle messages)
throws IOException
- Throws:
IOException
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.