EU Parliament Monitor — API Documentation - v0.9.24
    Preparing search index...
    • Normalize an artifact stem by stripping well-known suffixes and mapping synonyms to a canonical template name. Keeps the getArtifactInfo lookup table small while still covering every variant we observe under analysis/daily/**.

      Stripped suffixes:

      • .analysis (e.g. political-landscape.analysis.mdpolitical-landscape)
      • trailing -analysis, -assessment, -context, -deep-dive, -brief, -intelligence when the stripped stem has a curated template

      Synonyms (non-exhaustive — extend as new stems appear):

      • coalition-analysis / coalition-intelligence / coalition-sentiment-analysiscoalition-dynamics
      • threat-landscape / political-threat-landscape / coalition-threat-assessmentthreat-analysis
      • ai-<x> / political-<x><x> when <x> has a template
      • actor-threat-profileactor-threat-profiles

      Parameters

      • stem: string

        Raw filename stem (extension already stripped)

      Returns string

      Canonical template stem to feed into the curated tables