EU Parliament Monitor — API Documentation - v0.9.24
    Preparing search index...
    • Strip a trailing -run<N> taxonomy-noise suffix from an article-type slug, but only when doing so yields a CANONICAL_ARTICLE_TYPES token. This is conservative: a non-canonical leading token (e.g. custom-type-run5) is returned untouched so we never silently collapse a genuinely new article type into something it isn't.

      Parameters

      • slug: string

        Raw article-type slug from a manifest field

      Returns string

      Canonical slug when the suffix was successfully stripped, otherwise the original input