Riksdagsmonitor Intelligence Platform โ€” API Documentation - v1.0.30
    Preparing search index...
    • Compose a rich <meta description> from the executive-brief markdown, combining the BLUF lead sentence with the top 2-3 bullet items from the brief's headline-summary section (## 60-Second Read in English, or the localized equivalent โ€” see ./brief-extractor.ts | extractHeadlineSection).

      Editorial rationale: pre-2026-05 the description was the raw BLUF paragraph โ€” well-written prose but generic across articles ("Sweden's Riksdag advances ... amid coalition tensions ..."). The brief's headline section carries the specific signal (bill IDs HD03267 / HD03262, committee codes JuU / SfU, DIW scores) that journalists and search engines should see in the SERP snippet. This composer prepends a single BLUF lead sentence (for prose context) and concatenates the cleaned bullet IDs/topics that fit in the language's SERP window.

      Falls back to the plain BLUF paragraph when no headline section is present (~75% of briefs use only the BLUF). Pure function โ€” no I/O.

      Parameters

      • briefMarkdown: string

        Full executive-brief.md contents (any language).

      • lang: Language

        Language code for both the headline-section name lookup and the per-language SERP window.

      Returns string