raw HTML of the article
language code of the article (e.g. "en")
article type slug (e.g. "motions")
filename for the quality record
optional list of source document IDs for factual-accuracy check
ArticleQualityScore with metrics, pass/fail, and multidimensional assessment
Validate the quality of a generated article HTML.
Performs two sequential assessments:
Structural scoring (0โ100): word count (0โ50), h2 sections (0โ30), translation completeness (0โ20). Used as the primary pass/fail gate against
QUALITY_THRESHOLD.Multi-dimensional assessment via
assessArticleQuality(), which internally runs its own two passes (dimension computation + aggregation), producing a 6-dimension weighted score, issue list, and suggestions.Total: 3 assessment passes โ 1 structural + 2 multi-dimensional.