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

    Function splitQuestionListFromAnswers

    • Bayern's layout, recognised before any reading is attempted: a list of question headings, a line that says only "Antwort", then the questions restated with the government's reply under each.

      Read as one text, that layout gives every question two occurrences and the first-read answer wins — and the first occurrence is the list, where whatever follows a question (a page's footnote "1 https://archive.is/…", the table of contents' last entry) was published as its answer while the real one was dropped. Split here instead, the list supplies the questions and the restatement the answers, which is what the document means.

      Stricter than splitAtAnswerDivider on purpose: the divider must be the bare word, and at least two question headings must precede it. Schleswig-Holstein writes "Antwort:" under every question, and the Bundestag's cover page carries a bare "Antwort" with no question list in front of it; neither is this layout.

      Parameters

      Returns { answers: string; questions: string } | undefined