Riksdagsmonitor Intelligence Platform - v0.7.20
    Preparing search index...
    • Run multi-dimensional quality assessment on a generated article.

      The assessment performs two passes: Pass 1 — compute all six dimension scores from the HTML content Pass 2 — aggregate dimensions into a weighted overall score and build the issues list

      Always returns assessmentPasses >= 2.

      Parameters

      • html: string

        Full HTML content of the article

      • lang: string

        ISO 639-1 language code (e.g. "en")

      • sourceDocIds: readonly string[] = []

        Document IDs available in the source data for cross-checking

      • passThreshold: number = 60

        Minimum overall score to pass (0–100, default 60)

      Returns MultiDimensionalQualityAssessment