Skip to content

Comments

Enhance 2026-02-19 articles with MCP document data and translate to Nordic languages#327

Merged
pethers merged 9 commits intocopilot/news-2026-02-19-v2-2f1ee22a2bc0c0c2from
copilot/sub-pr-326
Feb 19, 2026
Merged

Enhance 2026-02-19 articles with MCP document data and translate to Nordic languages#327
pethers merged 9 commits intocopilot/news-2026-02-19-v2-2f1ee22a2bc0c0c2from
copilot/sub-pr-326

Conversation

Copy link
Contributor

Copilot AI commented Feb 19, 2026

Replaced placeholder content with real document data from riksdag-regering-mcp server and translated government propositions and opposition motions to Swedish, Danish, Norwegian. Fixed stale metadata in news indexes and incomplete sitemap coverage.

Content Enhancement via MCP Server

Government Propositions (9 documents):

  • HD03141: Weapons law overhaul
  • HD03128: VAT fraud measures (SEK 12-15B annual savings)
  • HD03122: Climate policy framework (NAO audit response)
  • HD03110, HD03116, HD03123, HD03126, HD03129, HD03120: Police reform, financial crisis, explosives, e-ID, beneficial owners, veterinary medicines

Opposition Motions (6 documents):

  • HD023905/HD023910: Property registration transparency (S pragmatic vs MP radical)
  • HD023906/HD023907/HD023909: Waste legislation (3 competing philosophies: S state-driven, C market-based, MP zero-waste)
  • HD023908: Renewable energy permits (C criticizes 5-7 year delays)

Enhanced articles include document IDs, titles, departments/parties, policy analysis, and political commentary grouped by theme.

Nordic Language Translation

Full content translation (not metadata-only) for government propositions and opposition motions:

  • Swedish: Tidö-koalitionens strategi, verkliga huvudmän
  • Danish: Tidø-koalitionens strategi, reelle ejere
  • Norwegian: Tidø-koalisjonens strategi, reelle eiere

Each language: 6500 words (propositions), 5800 words (motions).

Infrastructure Fixes

News Index Synchronization:

  • Extracted metadata from 347 articles across 14 languages
  • Updated all news/index*.html with current titles and descriptions
  • Fixed Schema.org ItemList numberOfItems counts

Sitemap Coverage:

  • Added 197 missing HTML files: 135 docs/api, 62 docs/coverage
  • Total URLs: 376 → 574
  • Age-based priority calculation for news articles
# Automated extraction pattern
for article in glob("news/*-{en,sv,da,no}.html"):
    title = extract_meta(article, "og:title")
    description = extract_meta(article, "description")
    update_index(lang, title, description, date)

Translation Status

Complete: Government propositions + opposition motions (EN, SV, DA, NO)
Pending: 11 languages for 2026-02-19 articles (fi, de, fr, es, nl, ar, he, ja, ko, zh)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Add 42 news articles for 2026-02-19 Enhance news articles with MCP document references and detailed policy analysis Feb 19, 2026
Copilot AI requested a review from pethers February 19, 2026 06:08
Copilot AI changed the title Enhance news articles with MCP document references and detailed policy analysis Enrich 2026-02-19 articles with MCP document data and translate to Swedish Feb 19, 2026
Copilot AI changed the title Enrich 2026-02-19 articles with MCP document data and translate to Swedish Enrich 2026-02-19 articles with MCP document data and translate to Nordic languages Feb 19, 2026
Copilot AI changed the title Enrich 2026-02-19 articles with MCP document data and translate to Nordic languages Enhance 2026-02-19 articles with MCP document data and Nordic translations Feb 19, 2026
- Extract metadata from all 347 articles across 14 languages
- Update all 14 news/index*.html with current titles and descriptions
- Generate complete sitemap.xml with 574 URLs (was missing 197 docs files)
- Include docs/api (135 files) and docs/coverage (62 files) in sitemap
- Fix Schema.org ItemList numberOfItems to match actual articles
- Validate all JSON-LD structured data

Sitemap coverage:
- 347 news articles
- 135 docs/api HTML files
- 62 docs/coverage HTML files
- 30 index and root pages

All index files now have synchronized metadata matching current articles.

Co-authored-by: pethers <[email protected]>
Copilot AI changed the title Enhance 2026-02-19 articles with MCP document data and Nordic translations Enhance 2026-02-19 articles with MCP document data and translate to Nordic languages Feb 19, 2026
@pethers pethers marked this pull request as ready for review February 19, 2026 13:32
@pethers pethers merged commit bf4cc1a into copilot/news-2026-02-19-v2-2f1ee22a2bc0c0c2 Feb 19, 2026
@pethers pethers deleted the copilot/sub-pr-326 branch February 19, 2026 13:33
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