EU Parliament Monitor — API Documentation - v0.9.25
    Preparing search index...
    • Script-aware terminator finalizer. Exported for use by helpers inside resolve-helpers.ts (e.g. padDescriptionToFloor) that already know the script family of their working text.

      Parameters

      • text: string

        Body (already clamped to the caller's budget)

      • family: "rtl" | "latin" | "cjk"

        Script family

      • OptionalmaxLength: number

        Optional grapheme budget the result must fit in

      • Optionallang: string

        Optional language code for Korean-specific terminator

      Returns string

      Body closed with a sentence terminator, or '' when input is blank