Riksdagsmonitor Intelligence Platform โ€” API Documentation - v0.9.24
    Preparing search index...
    • Classify article type based on content and filename. Uses the article-types registry first, then falls back to keyword detection for legacy articles. Supports detection keywords in all 14 languages. When relativePath is provided, also checks the parent directory name against the registry (for subdirectory-based articles like election-cycle/).

      Parameters

      • content: string
      • fileName: string
      • OptionalrelativePath: string

      Returns ArticleTypeValue