EU Parliament Monitor — API Documentation - v0.8.42
    Preparing search index...
    • Resolve the best description for a given methodology / template / reference file and language.

      Lookup priority:

      1. Curated per-language description (CURATED_DESCRIPTIONS[relPath].i18n[lang])
      2. Curated English canonical description (CURATED_DESCRIPTIONS[relPath].description) — only returned for English callers; non-English callers fall through to tier 3 so readers don't see raw English on localized pages when the curated English is non-trivial.
      3. Localized generic fallback sentence built from the file's localized title and a localized kind word

      Parameters

      • relPath: string

        Repository-relative file path (e.g. analysis/methodologies/ai-driven-analysis-guide.md)

      • lang: LanguageCode

        Target language code

      • fallback: string = ''

        H1-extracted title from the source Markdown (always English); used as the title seed for tier 3

      Returns string

      A non-empty description string