feat: speak ~N as "about N"; fix "dedupe" pronunciation#46
Merged
Conversation
StuBehan
force-pushed
the
feat/normalize-tilde-and-dedupe
branch
from
July 17, 2026 14:52
5e06e19 to
4d8a72a
Compare
StuBehan
force-pushed
the
feat/normalize-tilde-and-dedupe
branch
from
July 17, 2026 19:02
4d8a72a to
8e46b92
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two things espeak reads wrong in dev output, both fixed in the normalize pipeline.
Changes
~N→ "about N" — a locale unit/symbol rule so~before a number is voiced as an approximation (~1,234→ "about 1234") instead of "tilde one hundred twenty-three". Leaves~/pathand non-numeric~untouched."dee dupe"(reads "dee doop" — confirmed by ear), plus the inflectionsdeduped/deduping/dedupes/dedup. Whole-word, so longer tokens aren't rewritten.Testing
tests/test_text.pycases: tilde before/after a number,~/pathleft alone, tilde + decimal end-to-end; dedupe substitution across inflections + case, and a whole-word guard.ruff check+ruff format --checkclean;mypyclean;pytest— 45 text tests pass.stackvox normalize(text) and synthesized the dedupe candidates to pick the spelling by ear.CHANGELOG.mdintentionally untouched — release-please owns it; lands as afeatin the next release.