Skip to content

feat: transcription dictionary learned from log edits - #7

Merged
rsslldnphy merged 1 commit into
mainfrom
007-custom-word-dictionary
Mar 29, 2026
Merged

feat: transcription dictionary learned from log edits#7
rsslldnphy merged 1 commit into
mainfrom
007-custom-word-dictionary

Conversation

@rsslldnphy

Copy link
Copy Markdown
Owner

Summary

  • Adds a WordDictionaryStore that persists a personal list of words to UserDefaults (com.wisp.wordDictionary)
  • Transcription Log entries are now editable inline (double-click) — words present in the edited text but not the original are extracted and added to the dictionary automatically
  • Dictionary words are injected into WhisperKit's promptTokens and the LLM cleanup prompt on every transcription, biasing the model toward the user's preferred spellings
  • New "Transcription Dictionary" section in Preferences lets users view, add, edit, and delete words manually

Test plan

  • Double-click a log entry, correct a mistranscribed word, press Save — word appears in Preferences → Transcription Dictionary
  • Blank/whitespace edit does not add anything to the dictionary
  • Add a word manually in Preferences → Dictionary, quit and relaunch — word persists
  • Delete a word in Preferences → Dictionary — word is gone after relaunch
  • swift test --filter "WordDictionaryStoreTests|WordExtractionTests|LogEntryEditTests" — all 44 tests pass

🤖 Generated with Claude Code

When a user corrects a word in the Transcription Log, the edited
word is extracted and saved to a local WordDictionaryStore. Those
words are injected into WhisperKit's prompt tokens and the LLM
cleanup prompt on every subsequent transcription, biasing the model
toward the user's preferred spellings.

Users can view, add, edit and delete dictionary words in a new
"Transcription Dictionary" section in Preferences.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@rsslldnphy
rsslldnphy merged commit 1e7043f into main Mar 29, 2026
1 check failed
@rsslldnphy
rsslldnphy deleted the 007-custom-word-dictionary branch March 29, 2026 19:58
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.

1 participant