Riksdagsmonitor Intelligence Platform โ€” API Documentation - v1.0.30
    Preparing search index...
    • Strip a leading English date prefix from a BLUF sentence so the synthesised title doesn't open with a literal date. Returns the input unchanged when no pattern matches.

      Guard: if stripping would leave a sentence that starts with a verb (e.g. Friday 8 May 2026 marks โ€ฆ โ†’ marks โ€ฆ), we keep the prefix and let the downstream truncate handle it โ€” a slightly date-leaky title beats a grammatically broken one. Pure function โ€” exported for tests.

      Parameters

      • text: string

      Returns string