Skip to content

fix: replace placeholder wordCount with accurate per-locale values in JSON-LD structured data#524

Merged
pethers merged 2 commits intonews/committee-reports-2026-02-25-b50f2fcee1cde105from
copilot/sub-pr-520
Feb 25, 2026
Merged

fix: replace placeholder wordCount with accurate per-locale values in JSON-LD structured data#524
pethers merged 2 commits intonews/committee-reports-2026-02-25-b50f2fcee1cde105from
copilot/sub-pr-520

Conversation

Copy link
Contributor

Copilot AI commented Feb 25, 2026

All 14 language files for the 2026-02-25 committee reports article had a hardcoded placeholder "wordCount": 2400 in their Schema.org NewsArticle JSON-LD, regardless of actual content length.

Changes

  • Computed accurate word counts per locale by extracting visible text (stripping tags, scripts, styles)
  • CJK locales (JA, KO, ZH) use character counts — appropriate for those scripts
Locale wordCount
EN 1735
SV 1123
JA 1105
KO 1027
ZH 876
FR 809
ES 809
NL 690
HE 677
DE 665
AR 662
DA 639
NO 633
FI 594

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

…es in JSON-LD

Co-authored-by: pethers <1726836+pethers@users.noreply.github.com>
Copilot AI changed the title [WIP] Add automatic generation of committee reports analysis articles fix: replace placeholder wordCount with accurate per-locale values in JSON-LD structured data Feb 25, 2026
@pethers pethers marked this pull request as ready for review February 25, 2026 08:40
@pethers pethers merged commit 76bf0aa into news/committee-reports-2026-02-25-b50f2fcee1cde105 Feb 25, 2026
@pethers pethers deleted the copilot/sub-pr-520 branch February 25, 2026 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants