EU Parliament Monitor — API Documentation - v0.8.43
    Preparing search index...
    • Resolve a localized title + description for a single daily analysis artifact Markdown file.

      Resolution order:

      1. Feed-prefix detection — files starting with adoptedtexts-, procedures-, documents-, events-, externaldocuments- get a single fully-localized per-item label irrespective of the slug tail.
      2. Stem canonicalization — ai-swot-analysisswot-analysis, political-risk-assessmentrisk-assessment, etc. — so shared curated template entries apply to every variant.
      3. Template lookup — analysis/templates/<canonical>.md in the getCuratedTitle / getCuratedDescription tables.
      4. Orphan table — for stems with no template we ship curated titles and descriptions in all 14 languages.
      5. Localized generic fallback — humanized stem + language-specific "template in the EU Parliament Monitor analysis library" sentence.

      Parameters

      • shortPath: string

        Run-relative path (e.g. intelligence/swot-analysis.md)

      • lang: LanguageCode

        Target language code

      Returns { title: string; description: string }

      { title, description } — both always non-empty and localized