Package org.languagetool.rules.ro
Class RomanianWordRepeatBeginningRule
java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.TextLevelRule
org.languagetool.rules.WordRepeatBeginningRule
org.languagetool.rules.ro.RomanianWordRepeatBeginningRule
WordRepeatBeginningRule implementation for Romanian language.-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanIndicates if ambiguous adverbs are to be considered.getId()A string used to identify the rule in e.g.protected booleanisAdverb(AnalyzedTokenReadings token) Methods inherited from class org.languagetool.rules.WordRepeatBeginningRule
getDescription, getSuggestions, isException, 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
-
Constructor Details
-
RomanianWordRepeatBeginningRule
-
-
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
-
allowAmbiguousAdverbs
protected boolean allowAmbiguousAdverbs()Indicates if ambiguous adverbs are to be considered. Ambiguous adverbs are words that have the 'adverb' tag along with other tags E.g. romanian word "Și" can be "adverb predicativ", "conjuncție coordonatoare" or "pronume (își)".- Returns:
- true if ambiguous adverbs are to be considered.
-
isAdverb
- Overrides:
isAdverbin classWordRepeatBeginningRule
-