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
-
public class RomanianWordRepeatBeginningRule extends org.languagetool.rules.WordRepeatBeginningRuleWordRepeatBeginningRuleimplementation for Romanian language.
-
-
Constructor Summary
Constructors Constructor Description RomanianWordRepeatBeginningRule(java.util.ResourceBundle messages, org.languagetool.Language language)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanallowAmbiguousAdverbs()Indicates if ambiguous adverbs are to be considered.java.lang.StringgetId()protected booleanisAdverb(org.languagetool.AnalyzedTokenReadings token)-
Methods inherited from class org.languagetool.rules.WordRepeatBeginningRule
getDescription, isException, match, minToCheckParagraph
-
Methods inherited from class org.languagetool.rules.TextLevelRule
estimateContextForSureMatch, match, match
-
Methods inherited from class org.languagetool.rules.Rule
addExamplePair, getAntiPatterns, getCategory, getConfigureText, getCorrectExamples, getDefaultValue, getErrorTriggeringExamples, getIncorrectExamples, getLocQualityIssueType, getMaxConfigurableValue, getMinConfigurableValue, getSentenceWithImmunization, getUrl, hasConfigurableValue, isDefaultOff, isDefaultTempOff, isDictionaryBasedSpellingRule, isOfficeDefaultOff, isOfficeDefaultOn, makeAntiPatterns, setCategory, setCorrectExamples, setDefaultOff, setDefaultOn, setDefaultTempOff, setErrorTriggeringExamples, setIncorrectExamples, setLocQualityIssueType, setOfficeDefaultOff, setOfficeDefaultOn, setUrl, supportsLanguage, toRuleMatchArray, useInOffice
-
-
-
-
Method Detail
-
getId
public java.lang.String getId()
- Overrides:
getIdin classorg.languagetool.rules.WordRepeatBeginningRule
-
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
protected boolean isAdverb(org.languagetool.AnalyzedTokenReadings token)
- Overrides:
isAdverbin classorg.languagetool.rules.WordRepeatBeginningRule
-
-