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

    Function segmentQa

    • Segment a document: run every rule set, keep the ones that pass their own consistency checks, and take the one that recognised the most questions.

      Running all of them rather than stopping at the first success matters. A rule set can pass its checks while seeing only half the structure — one family's answer heading appears in documents whose questions it cannot match — and taking that result would publish answers with no questions attached while a better reading was available. Ties break on the declaration order, so the choice stays reproducible.

      Parameters

      Returns SegmentationResult