Back to Guides

· Granis Team

How to Set Up a Self-Healing Voice Dictionary with dictionary.json and dw

Speech-to-text models fail consistently on the exact same words: company names, client acronyms, and custom tooling. Keeping those fixes inside opaque binary preference files makes them invisible to version control and impossible for your AI tools to maintain.
DictateWizard v2.0 moves your entire vocabulary and replacement rulebook into a plain-text JSON file at ~/.config/dictate-wizard/dictionary.json, backed by atomic writes, < 50 ms DispatchSource hot-reloading, and the dw CLI.

Understand the plain-text schema and legacy migration

On first launch, DictateWizard migrates any existing v1 textReplacements and vocabulary entries non-destructively (tagging provenance.source = "migrated:v1") without deleting legacy UserDefaults. Each entry tracks provenance so you always know whether a rule came from you or an agent:
json
{
"version": 1,
"vocabulary": ["Granis", "SEOReport", "Holochain"],
"replacements": [
{
"id": "C4F5EF1F-7412-48D0-9A83-ED67BD125A2A",
"match": "Grand S",
"replacement": "Granis",
"preserveCase": false,
"isEnabled": true,
"provenance": {
"source": "agent:claude-code",
"reason": "Phonetic mishearing of product name Granis",
"addedAt": "2026-11-25T10:15:00Z",
"approvedBy": "user"
}
}
]
}

Manage, approve, and version rules from the terminal or git

Because DictionaryStore watches the parent directory for atomic rename swaps, editing dictionary.json or running git pull updates the running app in under 50 ms:
bash
dw replacements list --pending --json
dw replacements approve --all
dw vocab add "WhisperKit" "DictateWizard"
dw reprocess last --engine cloud
dw proposefrom agentpendingSuggestions+ RuleSanitizerApprove todictionary.json
Diagram source
flowchart LR
    A[dw propose  
from agent] --> B[pendingSuggestions  
+ RuleSanitizer]
    B e1@--> C[Approve to  
dictionary.json]
    e1@{ animation: slow }
Every rule proposed via CLI or ipc.sock (0600) must pass RuleSanitizer (2–80 char matches, zero newlines or Unicode BiDi smuggling, zero shell chains, zero stopwords), and dw history wraps transcripts in untrusted_transcript envelopes so agents treat speech as data.
Whether you sync ~/.config/dictate-wizard/dictionary.json in dotfiles for $0 or turn on Managed Cloud Pro ($7.99/mo or $59/yr) for encrypted multi-Mac sync, you keep full ownership of the terms you use across Granis, central intelligence for organizations, and every editor on your Mac. Start by downloading DictateWizard free or reading our voice coding guide.