From 9d3d1482b0067c499cb94a0dfe4a3933fbd8c888 Mon Sep 17 00:00:00 2001 From: Beingpax Date: Fri, 14 Nov 2025 08:25:52 +0545 Subject: [PATCH] Remove prepopulated dictionary items --- VoiceInk/Services/DictionaryContextService.swift | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/VoiceInk/Services/DictionaryContextService.swift b/VoiceInk/Services/DictionaryContextService.swift index 9086112..c6ad3fb 100644 --- a/VoiceInk/Services/DictionaryContextService.swift +++ b/VoiceInk/Services/DictionaryContextService.swift @@ -6,18 +6,12 @@ class DictionaryContextService { private init() {} - private let predefinedWords = "VoiceInk, chatGPT, GPT-4o, GPT-5-mini, Kimi-K2, GLM V4.5, Claude, Claude 4 sonnet, Claude opus, ultrathink, Vibe-coding, groq, cerebras, gpt-oss-120B, deepseek, gemini-2.5, Veo 3, elevenlabs, Kyutai" - func getDictionaryContext() -> String { - var allWords: [String] = [] - - allWords.append(predefinedWords) - - if let customWords = getCustomDictionaryWords() { - allWords.append(customWords.joined(separator: ", ")) + guard let customWords = getCustomDictionaryWords(), !customWords.isEmpty else { + return "" } - - let wordsText = allWords.joined(separator: ", ") + + let wordsText = customWords.joined(separator: ", ") return "Important Vocabulary: \(wordsText)" } private func getCustomDictionaryWords() -> [String]? {