Class RomanianWordRepeatBeginningRule


  • public class RomanianWordRepeatBeginningRule
    extends org.languagetool.rules.WordRepeatBeginningRule
    WordRepeatBeginningRule implementation for Romanian language.
    • Field Summary

      • Fields inherited from class org.languagetool.rules.Rule

        messages
    • 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 boolean allowAmbiguousAdverbs()
      Indicates if ambiguous adverbs are to be considered.
      java.lang.String getId()  
      protected boolean isAdverb​(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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RomanianWordRepeatBeginningRule

        public RomanianWordRepeatBeginningRule​(java.util.ResourceBundle messages,
                                               org.languagetool.Language language)
    • Method Detail

      • getId

        public java.lang.String getId()
        Overrides:
        getId in class org.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:
        isAdverb in class org.languagetool.rules.WordRepeatBeginningRule