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

    Function articlePolicyHasEconomicContext

    • OR-gate: verify that a policy article (or its linked analysis artefacts) cites either World Bank OR IMF evidence. Wired into the strict CLI validator (src/utils/validate-articles.ts) as the default economic-context gate — an article satisfies the rule when hasWorldBankEvidence OR hasIMFEvidence returns true, or when articleType is not on the mandatory list.

      Parameters

      • html: string

        Article HTML or aggregated text including analysis files.

      • articleType: string

        Slug of the article category (e.g. "committee-reports").

      Returns boolean

      true when at least one of WB or IMF evidence is present, or when the article type is not on the mandatory list.