Riksdagsmonitor Intelligence Platform โ€” API Documentation - v1.0.30
    Preparing search index...
    • Reader-hostile trailing fragments after the last comma โ€” when the word-boundary truncate cuts a list mid-item like "Sweden's Riksdag closed the week with security, tax authority" the trailing tax authority is a bare noun phrase with no verb / predicate and reads as a stub. Step back to the segment before the last comma so the title ends on a complete clause.

      Conservative: only triggers when

      • there is a comma in the cut, AND
      • the tail (text after the last comma) is short (โ‰ค 30 chars) AND contains 1โ€“4 words AND has no trailing punctuation, AND
      • the preceding segment is itself substantive (โ‰ฅ 25 chars after trim), so we never strip a title down to a meaningless fragment.

      Live cases (audit 2026-05-25):

      • "Swedish Riksdag closed the week of 22 May 2026 with a substantial legislative harvest spanning national security, tax authorityโ€ฆ" โ†’ cuts to "โ€ฆ spanning national securityโ€ฆ" (drops tax authority).
      • "Twenty interpellations filed in the 2025/26 riksmรถte crystallise the opposition's pre-election accountability offensive, theโ€ฆ" โ†’ cuts before the trailing comma.

      Pure function โ€” exported only for testability.

      Parameters

      • text: string

      Returns string