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

    Function assessStakeholderCoverage

    • Assess how many stakeholder perspectives are covered in the article text.

      Accepts either raw HTML or pre-extracted plain text. When called from scoreArticleQuality the text is already extracted, avoiding redundant HTML stripping.

      Parameters

      • htmlOrText: string

        Raw HTML string or pre-extracted plain text

      • preExtracted: boolean = false

        If true, treat htmlOrText as already-extracted plain text

      Returns StakeholderCoverage

      Stakeholder coverage assessment with present/missing lists and scores