From d202f6d8214cd40562d9e60f113cab2a663e7347 Mon Sep 17 00:00:00 2001 From: Pierre Le Fevre Date: Sat, 14 Mar 2026 10:34:46 +0100 Subject: [PATCH] Fix phrases fill-in-the-blank grammar and use const for seenSections The phrases lesson had "___ ko." with blank "Hindi ko alam" which would produce the nonsensical "Hindi ko alam ko." Fixed to "Hindi ko ___." with blank "alam" for correct "Hindi ko alam." Also changed let to const for seenSections Set (mutated via .add(), not reassigned). Co-Authored-By: Claude Opus 4.6 (1M context) --- content/phrases/lesson-01.json | 8 ++++---- web/src/pages/HomePage.tsx | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/content/phrases/lesson-01.json b/content/phrases/lesson-01.json index 3214fd0..ff2bd54 100644 --- a/content/phrases/lesson-01.json +++ b/content/phrases/lesson-01.json @@ -31,10 +31,10 @@ { "type": "fill-in-the-blank", "prompt": "I don't know", - "sentence": "___ ko.", - "blank": "Hindi ko alam", - "hint": "A phrase for when you lack information", - "wordBank": ["Hindi ko alam", "Alam", "Gusto", "Kailangan"] + "sentence": "Hindi ko ___.", + "blank": "alam", + "hint": "A word meaning 'to know'", + "wordBank": ["alam", "gusto", "kailangan", "pangalan"] }, { "type": "matching-pairs", diff --git a/web/src/pages/HomePage.tsx b/web/src/pages/HomePage.tsx index 1858dc7..c18ed0f 100644 --- a/web/src/pages/HomePage.tsx +++ b/web/src/pages/HomePage.tsx @@ -93,7 +93,7 @@ export function HomePage() { const yPositions: number[] = []; const bannerPositions: { y: number; sectionId: number }[] = []; let currentY = 0; - let seenSections = new Set(); + const seenSections = new Set(); for (let i = 0; i < topics.length; i++) { const topic = topics[i]; -- 2.51.2