Riksdagsmonitor Intelligence Platform โ€” API Documentation - v0.8.15
    Preparing search index...
    • Detect cross-document relationships in a batch of parliamentary documents.

      Identifies five relationship types:

      • responds-to โ€” Motion cites a government proposition
      • implements โ€” Implementation document for an EU directive or treaty
      • amends โ€” Document explicitly amending earlier legislation
      • contradicts โ€” Documents with opposing policy positions
      • related-topic โ€” Thematically related documents (โ‰ฅ2 shared domains)

      Parameters

      • docs: RawDocument[]

        Batch of documents to cross-reference

      • OptionalprecomputedMap: Map<string, string[]>

        Optional pre-computed domain map (docId โ†’ domains). When provided, avoids redundant detectPolicyDomains calls for documents already analysed in analyzeDocuments().

      Returns DocumentLink[]

      Deduplicated array of detected DocumentLink objects