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

    Function findReference

    • Find the Drucksachennummer in a document's text.

      The number has to be introduced by its label. A bare a/b is not evidence of a Drucksachennummer and reading one as such produced real misreadings: a page header Seite 2 / 4 became reference 2/4, im Verhältnis 2/3 became 2/3, and Stand 11/2024 became 11/2024 — each a document identity that does not exist. Structure cannot separate them, because 11/2024 is a perfectly well-formed reference; only the label can. With no labelled number this returns undefined and the caller abstains, which is the honest answer.

      Parameters

      • text: string

      Returns string | undefined