Class GermanParagraphRepeatBeginningRule


  • public class GermanParagraphRepeatBeginningRule
    extends org.languagetool.rules.ParagraphRepeatBeginningRule
    Check if to paragraphs begin with the same word. If the first word is an article it checks if the first two words are identical
    Since:
    4.1
    • Field Summary

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

        messages
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getId()  
      boolean isArticle​(org.languagetool.AnalyzedTokenReadings token)  
      • Methods inherited from class org.languagetool.rules.ParagraphRepeatBeginningRule

        getDescription, 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

      • GermanParagraphRepeatBeginningRule

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

      • getId

        public java.lang.String getId()
        Overrides:
        getId in class org.languagetool.rules.ParagraphRepeatBeginningRule
      • isArticle

        public boolean isArticle​(org.languagetool.AnalyzedTokenReadings token)
        Overrides:
        isArticle in class org.languagetool.rules.ParagraphRepeatBeginningRule