What changed
- New SoundAlikeSpelling (HEXShared, self-contained): after VocabularySpelling's
exact match, in English only, a transcript word the engine capitalized takes a
listed term's spelling when
- it reads the same once interchangeable spellings are evened out (ph/f, hard
c/k/ck, chr/kr, soft c/s, ae/e, a leading ai/a, a final y/ey/ie/ee/i, other
y/i, a silent h, doubled letters): "Stacy" -> "Stacey", "John" -> "Jon",
"Catherine's" -> "Katherine's", "Chris" -> "Kris", "Amy" -> "Aimee"; or
- inside a sentence, and not right after another capitalized word, it sounds
the same by a Metaphone-style key (consonants with voicing kept, first
vowel sound, vowel ending, vowel groups) and is at most two edits away:
"Jeff" -> "Geoff", "Versal" -> "Vercel".
Terms qualify when they are one word of 3+ letters starting with a capital.
Lowercase words, words in capitals, listed words and ties stay as heard.
- DictationPipeline runs it right after the exact rewrite, so the app and
in-keyboard dictation, every engine and every style get it. One call site.
- README: the rule, and the measured fact that SpeechTranscriber ignores
contextual strings.
Why
- TestFlight build 130: "I added the name 'Stacey' but it keeps coming back and
says Stacy." Every engine writes a name's commonest spelling, and the exact
rewrite only matches the same letters, so a list entry spelled another way was
never written.
Measured (Mac Studio; 42 sentences with names and terms in Samantha, Reed and
Ryan's ElevenLabs clone; 132 listed-term occurrences, 90 of them names)
- Listed spelling written, raw / with today's exact rewrite / with this:
Apple SpeechTranscriber 5 / 15 / 100; DictationTranscriber 4 / 13 / 97
(28 / 31 / 107 with the list as hints); Parakeet V2 19 / 25 / 116.
Names alone: 0-7 of 90 before, 83-87 of 90 after.
- Ordinary dictations (424 Apple and Parakeet transcripts from the numbers and
multilingual experiments) with a 20-name-and-term list and a 40-term tech
list: 0 words changed.
- 545,000 words of five Project Gutenberg novels: with the names list, 186 words
changed, every one a name the list spells another way (Catherine -> Katherine
118, John -> Jon 41, Rachel -> Rachael 7, ...; one place name, "St. John's
Wood"). With the tech list, 3 words: "the Study in Scarlet" -> "Studio".
3.2 s for the whole corpus, well under a millisecond per dictation.
Verified: python3 scripts/code-shape.py passes; xcodebuild test on an iPhone 17
Pro simulator (iOS 27.2) on the Mac Studio: 900 tests, 0 failures, 4 skipped,
including the new SoundAlikeSpellingTests. Not run on a physical iPhone.