Riksdagsmonitor Intelligence Platform - v0.7.19
    Preparing search index...

    Interface ArticleQualityScore

    Quality metrics for a single generated article

    interface ArticleQualityScore {
        filename: string;
        lang: string;
        articleType: string;
        wordCount: number;
        unknownAuthors: number;
        untranslatedSpans: number;
        analyticalSections: number;
        score: number;
        passed: boolean;
    }
    Index

    Properties

    filename: string

    Filename of the article (e.g. "2026-02-23-motions-en.html")

    lang: string

    Language code of the article

    articleType: string

    Article type (e.g. "motions")

    wordCount: number

    Approximate word count based on text content after stripping HTML tags

    unknownAuthors: number

    Number of "Unknown (Unknown)" occurrences

    untranslatedSpans: number

    Number of data-translate="true" spans (should be 0 for non-Swedish)

    analyticalSections: number

    Number of analytical

    sections found

    score: number

    Final 0–100 quality score

    passed: boolean

    Whether the article passed the quality threshold