Riksdagsmonitor Intelligence Platform โ€” API Documentation - v1.0.30
    Preparing search index...
    • Infer the article type (propositions, motions, committee-reports, โ€ฆ) from the canonical path or article title. The registry is the primary source; legacy hard-coded candidates remain for older folders that pre-date the registry.

      Exported so the head-metadata helper and the regenerator can derive the localized articleTypeLabel deterministically โ€” and so test scripts can verify type classification without rebuilding the regex locally.

      Parameters

      • canonicalPath: string
      • title: string

      Returns { type: string; label: string }