Fix inconsistent article type classification for weekend articles across all 14 language indexes#439
Merged
pethers merged 2 commits intonews-realtime/2026-02-22-weekend-analysis-751b87f663d6aa99from Feb 22, 2026
Conversation
…s all 14 language indexes Co-authored-by: pethers <[email protected]>
Copilot
AI
changed the title
[WIP] Update weekend analysis on Sweden's security measures
Fix inconsistent article type classification for weekend articles across all 14 language indexes
Feb 22, 2026
55254b1
into
news-realtime/2026-02-22-weekend-analysis-751b87f663d6aa99
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
classifyArticleType()keyword-matched "analysis" (and translations like "analys", "分析") from article body content in 7 language versions of the weekend-security-preparedness article, overriding the intendedprospectiveclassification. The other 7 languages happened not to trigger the analysis keywords and classified correctly.Changes
scripts/generate-news-indexes.ts: AddedfileName.includes('weekend')to the prospective filename guard — evaluated before content keyword scanning — so allweekend-*articles are classified consistently:index.html,index_es,index_fi,index_fr,index_ko,index_nl,index_zh): Updated"type": "analysis"→"type": "prospective"for the2026-02-22-weekend-security-preparednessarticle to align with the 7 language versions already correct.🔒 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.