EU Parliament Monitor โ€” API Documentation - v0.9.13
    Preparing search index...

    Function extractPriorityFindingHighlight

    • Mine the FIRST named priority finding from an executive-briefโ€“style artefact body. Looks for a section heading from PRIORITY_FINDING_SECTION_HEADINGS and returns the first dossier name + descriptive paragraph found inside it. Supports the three canonical Stage-B authoring patterns:

      1. Bold-in-numbered-list (breaking briefs): 1. **Digital Markets Act Enforcement** (TA-10-2026-0160, 2026-04-30) Parliament adopted a resolution โ€ฆ
      2. Numbered subheading (committee briefs): ### 1. Clean Industrial Deal Implementation (ITRE/ENVI) The Clean Industrial Deal framework โ€ฆ
      3. Bold-leading paragraph (synthesis variants): **Trigger 1: DMA Enforcement Resolution** (TA-10-2026-0160) - Significance: ๐ŸŸข HIGH IMPACT โ€ฆ

      Trailing parenthesised metadata ((TA-10-2026-0160, 2026-04-30), (ITRE/ENVI)) is stripped from the headline so it stays headline-shaped (Digital Markets Act Enforcement) rather than boilerplate (Digital Markets Act Enforcement (TA-10-2026-0160, 2026-04-30)).

      Parameters

      • body: string

        Editorial artefact body

      Returns { headline: string; summary: string } | null

      {headline, summary} when a priority finding was identified; null when the body has no priority section or no usable item inside