Package org.languagetool.rules.pl
Class DashRule
java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.AbstractDashRule
org.languagetool.rules.pl.DashRule
Check for compounds written with dashes instead of hyphens (for example, Rabka — Zdrój).
- Since:
- 3.6
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static com.hankcs.algorithm.AhoCorasickDoubleArrayTrie<String> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.hankcs.algorithm.AhoCorasickDoubleArrayTrie<String> A short description of the error this rule can detect, usually in the language of the text that is checked.Methods inherited from class org.languagetool.rules.AbstractDashRule
estimateContextForSureMatch, getId, isBoundary, loadCompoundFile, matchMethods inherited from class org.languagetool.rules.Rule
addExamplePair, addTags, addToneTags, cacheAntiPatterns, getAntiPatterns, getCategory, getCorrectExamples, getDistanceTokens, getErrorTriggeringExamples, getFullId, getIncorrectExamples, getLocQualityIssueType, getMinPrevMatches, getPriority, getRuleOptions, getSentenceWithImmunization, getSourceFile, getSubId, getTags, getToneTags, getUrl, hasTag, hasToneTag, isDefaultOff, isDefaultTempOff, isDictionaryBasedSpellingRule, isGoalSpecific, 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, useInOffice
-
Field Details
-
trie
-
-
Constructor Details
-
DashRule
-
-
Method Details
-
getDescription
Description copied from class:RuleA short description of the error this rule can detect, usually in the language of the text that is checked.- Specified by:
getDescriptionin classAbstractDashRule
-
getMessage
- Specified by:
getMessagein classAbstractDashRule
-
getCompoundsData
- Specified by:
getCompoundsDatain classAbstractDashRule
-