org.languagetool.rules.uk
Class PunctuationCheckRule
java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.AbstractPunctuationCheckRule
org.languagetool.rules.uk.PunctuationCheckRule
public class PunctuationCheckRule
- extends AbstractPunctuationCheckRule
A rule that matches "..", "::", "-," but not "...", "!..", "?!!", ",-" etc
TODO: spaces seem to be special, extract from regexp?
- Author:
- Andriy Rysin
| 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 |
PunctuationCheckRule
public PunctuationCheckRule(ResourceBundle messages)
isPunctsJoinOk
protected final boolean isPunctsJoinOk(String tokens)
- Specified by:
isPunctsJoinOk in class AbstractPunctuationCheckRule
isPunctuation
protected final boolean isPunctuation(String token)
- Specified by:
isPunctuation in class AbstractPunctuationCheckRule
reset
public void reset()
- Overrides:
reset in class AbstractPunctuationCheckRule
Copyright © 2013. All Rights Reserved.