@maschinenlesbar.org/openka-cli
    Preparing search index...

    Function restatesSameQuestion

    • Whether a repeated heading restates the same question or asks a different one.

      Taken from the corpus, not assumed. Real restatements are prefix-identical: Bayern reprints its whole question list after the "Antwort" divider and the two copies agree until one of them stops, and Baden-Württemberg's differ only by a space the text layer inserted mid-word ("W elche" for "Welche"). So whitespace and hyphens are removed entirely rather than collapsed, and one text being the start of the other counts as the same question. The hyphens matter: Baden-Württemberg's two copies of question 6 agree for 131 characters and then read "Land-\nkreis" against "Landkreis", because one copy broke the word across a line. Requiring exact equality abstained on five correct Bayern questions and two Baden-Württemberg ones.

      Parameters

      • a: string
      • b: string

      Returns boolean