Package org.languagetool.rules.pt
Class PostReformPortugueseCompoundRule
java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.AbstractCompoundRule
org.languagetool.rules.pt.PostReformPortugueseCompoundRule
Checks that compounds (if in the list) are not written as separate words.
- Since:
- 2.6
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static CompoundRuleDataprivate static final Patternprivate static final PatternFields inherited from class org.languagetool.rules.AbstractCompoundRule
lang, linguServices, sentenceStartsWithUpperCase, subRuleSpecificIds -
Constructor Summary
ConstructorsConstructorDescriptionPostReformPortugueseCompoundRule(ResourceBundle messages, Language lang, UserConfig userConfig) -
Method Summary
Modifier and TypeMethodDescriptionA short description of the error this rule can detect, usually in the language of the text that is checked.getId()A string used to identify the rule in e.g.getUrl()An optional URL describing the rule match in more detail.mergeCompound(String str, boolean uncapitalizeMidWords) Methods inherited from class org.languagetool.rules.AbstractCompoundRule
estimateContextForSureMatch, filterReplacements, isMisspelled, match, useSubRuleSpecificIdsMethods 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, 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
-
VOWEL
-
RS
-
compoundData
-
-
Constructor Details
-
PostReformPortugueseCompoundRule
public PostReformPortugueseCompoundRule(ResourceBundle messages, Language lang, UserConfig userConfig) throws IOException - Throws:
IOException
-
-
Method Details
-
getId
Description copied from class:RuleA string used to identify the rule in e.g. configuration files. This string is supposed to be unique and to stay the same in all upcoming versions of LanguageTool. It's supposed to contain only the charactersA-Zand the underscore.- Specified by:
getIdin classAbstractCompoundRule
-
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 classAbstractCompoundRule
-
getUrl
Description copied from class:RuleAn optional URL describing the rule match in more detail. Typically points to a dictionary or grammar website with explanations and examples. Will returnnullfor rules that have no URL. -
getCompoundRuleData
- Specified by:
getCompoundRuleDatain classAbstractCompoundRule
-
mergeCompound
- Overrides:
mergeCompoundin classAbstractCompoundRule
-