Package org.languagetool.rules.ca
Class CatalanWordRepeatBeginningRule
java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.TextLevelRule
org.languagetool.rules.WordRepeatBeginningRule
org.languagetool.rules.ca.CatalanWordRepeatBeginningRule
Adds Catalan suggestions to
WordRepeatBeginningRule.-
Field Summary
FieldsModifier and TypeFieldDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDifferentAdverbsOfSameCategory(String adverb, Set<String> adverbsOfCategory) Gives suggestions to replace the given adverb.getId()A string used to identify the rule in e.g.protected booleanisAdverb(AnalyzedTokenReadings token) booleanisException(String token) Methods inherited from class org.languagetool.rules.WordRepeatBeginningRule
getDescription, isSentenceException, match, minToCheckParagraphMethods inherited from class org.languagetool.rules.TextLevelRule
estimateContextForSureMatch, match, 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
-
ADD_ADVERBS
-
CONTRAST_CONJ
-
CAUSE_CONJ
-
EMPHASIS_ADVERBS
-
EXPLAIN_ADVERBS
-
PERSONAL_PRONOUNS
-
ADD_EXPRESSIONS
-
CONTRAST_EXPRESSIONS
-
CAUSE_EXPRESSIONS
-
EXCEPCIONS_START
-
-
Constructor Details
-
CatalanWordRepeatBeginningRule
-
-
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.- Overrides:
getIdin classWordRepeatBeginningRule
-
isException
- Overrides:
isExceptionin classWordRepeatBeginningRule
-
isAdverb
- Overrides:
isAdverbin classWordRepeatBeginningRule
-
getSuggestions
- Overrides:
getSuggestionsin classWordRepeatBeginningRule
-
getDifferentAdverbsOfSameCategory
private List<String> getDifferentAdverbsOfSameCategory(String adverb, Set<String> adverbsOfCategory) Gives suggestions to replace the given adverb.- Parameters:
adverb- to get suggestions foradverbsOfCategory- the adverbs of the same category as adverb (adverb is required to be contained in the Set)- Returns:
- a List of suggested adverbs to replace the given adverb
-