Riksdagsmonitor Intelligence Platform - v0.7.19
    Preparing search index...
    • Validate the quality of a generated article HTML.

      Scoring (0–100):

      • wordScore (0–50): proportional to word count up to 1 000 words
      • sectionScore (0–30): based on number of analytical

        sections (full at ≥ 3)

      • translationScore (0–20): deducted for each data-translate="true" span in non-Swedish

      Parameters

      • html: string

        raw HTML of the article

      • lang: string

        language code of the article (e.g. "en")

      • articleType: string

        article type slug (e.g. "motions")

      • filename: string

        filename for the quality record

      Returns ArticleQualityScore

      ArticleQualityScore with metrics and pass/fail result