Class GermanParagraphRepeatBeginningRule

java.lang.Object
org.languagetool.rules.Rule
org.languagetool.rules.TextLevelRule
org.languagetool.rules.ParagraphRepeatBeginningRule
org.languagetool.rules.de.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
  • Constructor Summary

    Constructors
    Constructor
    Description
    GermanParagraphRepeatBeginningRule(ResourceBundle messages, org.languagetool.Language lang)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    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 Details

    • GermanParagraphRepeatBeginningRule

      public GermanParagraphRepeatBeginningRule(ResourceBundle messages, org.languagetool.Language lang)
  • Method Details

    • getId

      public 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