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.
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 returnstrue, or whenarticleTypeis not on the mandatory list.