Package org.languagetool.rules.uk
Class PunctuationCheckRule
java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.AbstractPunctuationCheckRule
org.languagetool.rules.uk.PunctuationCheckRule
A rule that matches "..", "::", "-," but not "...", "!..", "?!!", ",-" etc
TODO: spaces seem to be special, extract from regexp?
- Author:
- Andriy Rysin
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final booleanisPunctsJoinOk(String tokens) protected final booleanisPunctuation(String token) Methods inherited from class org.languagetool.rules.AbstractPunctuationCheckRule
getDescription, getId, matchMethods inherited from class org.languagetool.rules.Rule
addExamplePair, addTags, addToneTags, cacheAntiPatterns, estimateContextForSureMatch, getAntiPatterns, getCategory, getCorrectExamples, getDistanceTokens, getErrorTriggeringExamples, getFullId, getIncorrectExamples, getLocQualityIssueType, getMinPrevMatches, getPriority, getRuleOptions, getSentenceWithImmunization, getSourceFile, getSubId, getTags, getToneTags, getUrl, hasTag, hasToneTag, isDefaultOff, isDefaultTempOff, isDictionaryBasedSpellingRule, isGoalSpecific, isIncludedInErrorsCorrectedAllAtOnce, isIncludedInHiddenMatches, isOfficeDefaultOff, isOfficeDefaultOn, isPremium, makeAntiPatterns, setCategory, setCorrectExamples, setDefaultOff, setDefaultOn, setDefaultTempOff, setDistanceTokens, setErrorTriggeringExamples, setExamplePair, setGoalSpecific, setIncludedInHiddenMatches, setIncorrectExamples, setLocQualityIssueType, setMinPrevMatches, setOfficeDefaultOff, setOfficeDefaultOn, setPremium, setPriority, setTags, setToneTags, setUrl, supportsLanguage, toRuleMatchArray, useDictionaryBasedFilterForMatches, useInOffice
-
Constructor Details
-
PunctuationCheckRule
-
-
Method Details
-
isPunctsJoinOk
- Specified by:
isPunctsJoinOkin classAbstractPunctuationCheckRule
-
isPunctuation
- Specified by:
isPunctuationin classAbstractPunctuationCheckRule
-