EU Parliament Monitor — API Documentation - v0.8.49
    Preparing search index...

    Module Aggregator/Slug

    Pure naming functions used to build article slugs and filename suffixes. Extracted into a dedicated module so the news/<date>-<type>[-<suffix>]-<lang>.html filename convention has one authoritative implementation that batch mode, single-run mode, and the back-compat shim in article-generator.ts all defer to.

    Every function here is referentially transparent — no I/O, no global state, deterministic for the same inputs.

    Functions

    buildArticleSlug
    sanitizeRunSuffix

    Variables

    RUN_SUFFIX_MAX_LENGTH
    DEFAULT_RUN_SUFFIX