EU Parliament Monitor - API Documentation - v0.8.2
    Preparing search index...

    Function buildStakeholderImpactMatrix

    • Build a stakeholder impact matrix from scheduled events and legislative documents, assessing which groups are most affected by the agenda.

      Returns an empty section when no events or documents are available (graceful fallback). This function only constructs raw data; HTML escaping (for example via escapeHTML()) must be applied at render time by the caller (e.g. in renderStakeholderSection()).

      Parameters

      • events: readonly ParliamentEvent[]

        Parliament events for the upcoming week

      • docs: readonly LegislativeDocument[]

        Legislative documents expected in the period

      • lang: string = 'en'

        Language code for localized labels (defaults to 'en')

      Returns StakeholderImpactSection

      Stakeholder impact section with rows