EU Parliament Monitor — API Documentation - v0.8.31
    Preparing search index...

    Interface ContentValidationMetrics

    Quality metrics collected during content validation

    interface ContentValidationMetrics {
        wordCount: number;
        htmlValid: boolean;
        hasPlaceholders: boolean;
        computedReadTime: number;
        claimedReadTime: number;
        langAttributeValid: boolean;
        dirAttributeValid: boolean;
        metaTagsSynced: boolean;
        keywordsLocalized: boolean;
    }
    Index

    Properties

    wordCount: number

    Approximate word count of plain text extracted from HTML

    htmlValid: boolean

    Whether all required structural HTML elements are present

    hasPlaceholders: boolean

    Whether placeholder/template markers were detected in the output

    computedReadTime: number

    Computed read-time based on actual word count (words / 250, min 1)

    claimedReadTime: number

    Claimed read-time extracted from the article (0 if not found)

    langAttributeValid: boolean

    Whether the html lang attribute matches the expected language

    dirAttributeValid: boolean

    Whether the dir attribute is correctly set for RTL languages

    metaTagsSynced: boolean

    Whether meta tags (title, og:title, twitter:title) are synchronized

    keywordsLocalized: boolean

    Whether keywords contain at least some localized terms for non-English articles