EU Parliament Monitor — API Documentation - v0.9.28
    Preparing search index...
    • Decide whether to push the raw description through composeContextualDescription's enrichment path. Triggers when the raw description is below ENRICHMENT_TRIGGER_LENGTH (the historical "too short" gate) or when the locale is non-Latin and the raw description is pure ASCII (the English-fallback all-ASCII description failure mode reported by Gate 4b in executive-brief-seo-extraction.test.js).

      The second branch is the key fix for ar/he descriptions that fell through from the English brief without any localized labels — even though the raw English summary cleared the 100-char trigger, leaving it untouched produced a pure-ASCII snippet that the SEO regression suite (correctly) rejects as a resolver leak.

      Parameters

      • rawDescription: string

        Composed description before enrichment

      • lang: LanguageCode

        Publishing locale

      Returns boolean

      True when enrichment must run