EU Parliament Monitor — API Documentation - v0.8.20
    Preparing search index...

    Module Generators/SynthesisSummary

    Aggregation engine that reads per-file analysis outputs and produces a synthesis summary — a single intelligence briefing consumed by article generators to determine narrative direction, headline selection, and publication priority.

    The synthesiser:

    1. Scans the analysis date directory for markdown files
    2. Extracts YAML frontmatter (method, confidence) from each
    3. Counts SWOT mentions and risk-level keywords
    4. Ranks findings by confidence and produces editorial recommendations

    analysis/templates/synthesis-summary.md

    Functions

    parseFrontmatter
    aggregateSWOT
    aggregateRisks
    extractSummaryLine
    aggregateConfidence
    findMarkdownFiles
    generateEditorialRecommendations
    buildSynthesisSummary
    formatSynthesisMarkdown