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

    Function buildDefaultStakeholderPerspectives

    • Build a default set of stakeholder perspectives for a parliamentary action. Each perspective is seeded with a reasoning string and evidence items derived from the provided topic and impact scores. All six stakeholder groups receive a perspective entry.

      Parameters

      • topic: string

        Short description of the parliamentary action (e.g. vote title)

      • Optionalscores: Partial<Record<AnalysisStakeholderType, number>>

        Optional per-stakeholder importance scores (0-1); defaults to 0.5

      Returns StakeholderPerspective[]

      Array of six StakeholderPerspective objects, one per stakeholder group