EU Parliament Monitor — API Documentation - v0.9.28
    Preparing search index...
    • Pick the SEO <title> from the candidate ladder. Skips the summary-derived candidate for non-Latin locales when its content is pure ASCII so we never leak an English summary-derived title (e.g. *Q1 2026 is the master-synthe) into a CJK / RTL page (Gate 4a in executive-brief-seo-extraction.test.js).

      Parameters

      • lang: LanguageCode

        Publishing locale

      • candidates: {
            explicitTitle: string;
            resolvedTitleCandidate: string;
            summaryDerivedTitle: string;
            contextualFallback: string;
        }

        Title candidate inputs (in priority order)

        • ReadonlyexplicitTitle: string

          Manifest operator override title

        • ReadonlyresolvedTitleCandidate: string

          H1/document-derived title

        • ReadonlysummaryDerivedTitle: string

          Summary-first-sentence title

        • ReadonlycontextualFallback: string

          Final fallback title

      Returns string

      Picked title (always non-empty when the contextual fallback fires)