hex/ios/HEXMobileTests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel dc89985e61 iOS: a spoken count reads "Test 1, 2, 3." on every speech model
TestFlight (@kevin_miller, Nov 20, build 56 = 2ef08aa4): "Test 1, 2, 3"
came out "Test three." / "Test 3" from the keyboard's in-keyboard dictation
and "test 123" in the app's Dictate box.

What each speech model writes (macOS 27.2.1 on the Mac Studio, `say`
clips, 4 voices): Apple's SpeechTranscriber (in-keyboard dictation) writes
"Test one, 2, 3.", "Test, one, two, three.", "Testing 123.", "Counting one,
two, three, four."; DictationTranscriber writes "Test 123", "Counting 1234";
Parakeet v2 through FluidAudio 0.15.5 (the app) writes "Test 1, 2, 3",
"Testing 123" (no pauses), "1, 2, 3, testing".

Responsible steps:
- "Test three." / "Test 3": at build 56 Clean up what I say deleted every
  word over P(DELETE) 0.98 with no guard. The real Core ML model gives the
  count words but the last 0.97-0.999 ("Test one two three." -> "Test
  three.", "Test 1, 2, 3." -> "Test 1, 3."): it reads a count as a
  self-correction. CleanupGuard (#2132, after build 56) already keeps every
  count on origin/dev; this commit adds tests that pin it.
- "test 123": Parakeet and DictationTranscriber write "123" themselves; no
  Hex step merges digits. Apple Intelligence's cleanup (same prompt, macOS
  27.2 model) kept "Test 1, 2, 3." in 3 of 3 runs per input.
- The paths still disagreed on origin/dev: the keyboard inserted "Test one,
  2, 3." where the app inserted "Test 1, 2, 3.".

Change: SpokenCleanupRules.spokenCounts, run by CleanupTagger.cleanIfEnabled
right after spoken symbols (every style but Verbatim, English, Clean up what
I say on or off, before the tagger, in the app and in-keyboard dictation),
writes a count in digits: three numbers or more counting up from one, in
words or digits, with only a comma or a space between them ("one, 2, 3",
"one two three" -> "1, 2, 3"), and "123"... right after "test"/"testing"
when it ends its clause ("Test 123" -> "Test 1, 2, 3"; "test 123 passed",
"room 123", "Counting 1234" stay). Decision: the "123" split is limited to
test/testing because a bare "123" is usually a real number. Format lists
already never makes a list of a count (each item would be empty); tests
prove it. README gains the Spoken counts paragraph.

Verified on the iOS 27.2 simulator (Mac Studio), real Core ML tagger:
TranscriptCleanupGuardTests 9, CleanupGuardTests 6,
SpokenCleanupRulesTests 19, HinglishRomanizerTests 7, SpokenListsTests 10,
InformalContractionTests 4, FrenchSpacingTests 3, CleanupTaggerTests 15,
DictationControllerTests 50: 123 tests, 0 failures. New:
testSpokenCountsBecomeDigits, testOtherNumbersStayAsSaid,
testCountsAreNoList, testCountsKeepEveryNumberFromEverySpeechModel (also
shows the guardless tagger's "Test three."),
testACountReadsTheSameFromTheAppAndTheKeyboard (app with Parakeet's text
vs keyboard with both Apple modules' text, every style, Lowercase).
2026-11-21 10:00:12 -05:00
..
Fixtures iOS: emoji panel with on-device suggestions (Experiments › Emoji) (#2051) 2026-11-20 15:53:24 +00:00
AutocorrectEngineTests.swift iOS: delete keeps an autocorrection and the strip offers the revert, smart quotes, a two-way trackpad, and key clicks (#2192) 2026-11-21 09:22:10 -05:00
CleanupTaggerTests.swift iOS: a spoken count reads "Test 1, 2, 3." on every speech model 2026-11-21 10:00:12 -05:00
CustomVocabularyTests.swift ios: custom vocabulary experiment (#1547) 2026-11-08 12:15:00 -05:00
DictationControllerTests.swift iOS: a spoken count reads "Test 1, 2, 3." on every speech model 2026-11-21 10:00:12 -05:00
DictationLanguageTests.swift iOS: dictate Latin American Spanish with Latin America's model, and keep a picked variant when the keyboard switches (#2193) 2026-11-21 09:53:34 -05:00
DictationLearningTests.swift ios: learn dictation and typing fixes from edits (Learn how I type) (#2022) 2026-11-20 01:04:58 +00:00
DotScopeTests.swift fix(ios): eliminate handoff frame stalls and add overlapping ballistic swipe throw (t1153) (#757) 2026-10-31 22:14:22 -07:00
EmojiSuggesterTests.swift iOS: swipe reads the letters under the path, and the emoji bar scrubs (#2189) 2026-11-21 08:47:45 -05:00
FullKeyboardEngineTests.swift iOS: delete keeps an autocorrection and the strip offers the revert, smart quotes, a two-way trackpad, and key clicks (#2192) 2026-11-21 09:22:10 -05:00
HexKeyGestureTests.swift iOS: translation says when it pastes as spoken, retries, and never turns itself off (#2176) 2026-11-21 06:33:37 -05:00
KeyboardBridgeTests.swift iOS keyboard: a failure from Hex shows for seconds, not forever, and the Hex key retries it 2026-11-21 10:00:12 -05:00
KeyboardLayoutTests.swift iOS: the top bar's words, dividers and pill sit on Apple's line (#2201) 2026-11-21 09:55:54 -05:00
LanguageLearningTests.swift ios: learn each language separately (experiment) (#2188) 2026-11-21 09:00:58 -05:00
ShiftStateMachineTests.swift iOS: Greek keyboard, tonos autocorrect, and a final ς in Lowercase (#2184) 2026-11-21 08:26:30 -05:00
SwipeDecoderTests.swift iOS: swipe reads the letters under the path, and the emoji bar scrubs (#2189) 2026-11-21 08:47:45 -05:00
TranscriptCleanupTests.swift iOS: a spoken count reads "Test 1, 2, 3." on every speech model 2026-11-21 10:00:12 -05:00
TypingLogTests.swift iOS: opaque keyboard panel so stale system layers can't show through, and a nil-safe field ID (#2139) 2026-11-21 03:45:47 +00:00