Riksdagsmonitor Intelligence Platform โ€” API Documentation - v1.0.30
    Preparing search index...
    • Footer-block markers that templates and AI agents have historically emitted at the end of every artifact (sometimes twice). The aggregator already strips a curated set of trailing administrative blocks (see cleanArtifactBody); this function catches the intra-body duplicates โ€” when an ISMS / classification / GDPR provenance line appears two-or-more times in the same artifact body, only the first occurrence is kept.

      A "footer block" is a single line (post-trim) that:

      • starts with the bold marker **ISMS โ€ฆ, **Classified under โ€ฆ, **GDPR โ€ฆ, **Article-Generation contract**, **Hack23 ISMS**, **Provenance**, or
      • starts with the italic marker _Classified under โ€ฆ or *Classified under โ€ฆ.

      Lines inside fenced code blocks are preserved verbatim. Subsequent occurrences of the exact same footer line are removed (along with a single trailing blank line so the surrounding paragraph spacing is preserved).

      Parameters

      • body: string

      Returns string