EU Parliament Monitor - API Documentation - v0.7.1
    Preparing search index...

    Function validateArticleContent

    • Validate the quality of a generated article.

      Checks performed:

      • Minimum word count threshold for the given article type
      • Presence of un-replaced placeholder/template markers
      • Existence of required structural HTML elements

      Parameters

      • html: string

        Complete HTML string of the generated article

      • _language: string

        Language code of the article (reserved for future language-consistency checks)

      • articleType: string

        Article category string (e.g. "week-ahead")

      Returns ContentValidationResult

      Structured validation result with errors, warnings and metrics