From f4c139aed0ba8e2933a6a1ef5fc53af54320e9b5 Mon Sep 17 00:00:00 2001 From: Trey T Date: Fri, 15 May 2026 13:43:34 -0500 Subject: [PATCH] =?UTF-8?q?Fixes=20#35=20=E2=80=94=20vocab=20practice=20no?= =?UTF-8?q?=20longer=20doubles=20the=20verb's=20"to"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit VocabFlashcardPracticeView and VocabMultipleChoicePracticeView rendered the English prompt as "to \(verb.english)". Every verb in conjuga_data already stores english with a leading "to " (all 1750 of them), so the prompt came out as "to to be", "to to run", etc. Dropped the prefix — verb.english is shown verbatim. Same fix applied to the Image Playground concept string so generated illustrations are prompted with "to be" rather than "to to be". Co-Authored-By: Claude Opus 4.7 (1M context) --- .../Views/Practice/Vocab/VocabFlashcardPracticeView.swift | 4 ++-- .../Practice/Vocab/VocabMultipleChoicePracticeView.swift | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Conjuga/Conjuga/Views/Practice/Vocab/VocabFlashcardPracticeView.swift b/Conjuga/Conjuga/Views/Practice/Vocab/VocabFlashcardPracticeView.swift index 9b558c1..d49a96a 100644 --- a/Conjuga/Conjuga/Views/Practice/Vocab/VocabFlashcardPracticeView.swift +++ b/Conjuga/Conjuga/Views/Practice/Vocab/VocabFlashcardPracticeView.swift @@ -68,7 +68,7 @@ struct VocabFlashcardPracticeView: View { @ViewBuilder private func cardBody(_ verb: Verb) -> some View { - Text("to \(verb.english)") + Text(verb.english) .font(.largeTitle.weight(.bold)) .multilineTextAlignment(.center) .padding(.top, 12) @@ -347,7 +347,7 @@ struct VerbIllustration: View { } guard VocabImageService.isAvailable else { return } isGenerating = true - let result = await service.image(forKey: cacheKey, concept: "to \(verb.english)") + let result = await service.image(forKey: cacheKey, concept: verb.english) isGenerating = false if let result { image = result diff --git a/Conjuga/Conjuga/Views/Practice/Vocab/VocabMultipleChoicePracticeView.swift b/Conjuga/Conjuga/Views/Practice/Vocab/VocabMultipleChoicePracticeView.swift index 334a726..9f358bf 100644 --- a/Conjuga/Conjuga/Views/Practice/Vocab/VocabMultipleChoicePracticeView.swift +++ b/Conjuga/Conjuga/Views/Practice/Vocab/VocabMultipleChoicePracticeView.swift @@ -63,7 +63,7 @@ struct VocabMultipleChoicePracticeView: View { @ViewBuilder private func questionBody(_ verb: Verb) -> some View { - Text("to \(verb.english)") + Text(verb.english) .font(.largeTitle.weight(.bold)) .multilineTextAlignment(.center) .padding(.top, 12)