Quality scoring helpers and badge rendering for article HTML.
Counts words, sections, visualizations, and evidence references on rendered
article HTML and emits an aria-hidden badge element summarizing the
result. Split out of section-builders.ts (Refactor 8/8) so each section
builder can be unit-tested in isolation.
Description
Quality scoring helpers and badge rendering for article HTML. Counts words, sections, visualizations, and evidence references on rendered article HTML and emits an
aria-hiddenbadge element summarizing the result. Split out ofsection-builders.ts(Refactor 8/8) so each section builder can be unit-tested in isolation.