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

    Function articlePolicyHasWorldBank

    • Verify that a policy article (or the linked analysis artifacts) contains at least one World Bank fingerprint — indicator code (word-bounded), MCP tool-trace token, or the phrase "World Bank" itself. Returns true if the gate is satisfied OR the article type is not on the mandatory list.

      Parameters

      • html: string

        Article HTML

      • articleType: string

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

      • Optional_analysisDir: string

        Reserved for API symmetry; filesystem recursion is performed by the caller in validate-articles.ts to keep this module pure.

      Returns boolean

      true when the World Bank evidence requirement is met or not applicable