hex/ios/HEXMobileTests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel dad51c2c32 iOS: the typing quality gate on the iOS engine (opt-in replay)
Add ios/scripts/typing-gate.py and the opt-in HEXMobileTests/TypingGateReplayTests.
The script reads the Android benchmark's held-out inputs (#2374:
android/benchmark/typing/held-out, accent-keys.json, critical-cases.json,
thresholds.json) without copying them, writes the inputs, runs the replay
once per language (one xcodebuild each), and scores the outputs exactly as
quality-gate.py does: the same alignment, the same three numbers (error
reduction against raw taps, correct words changed, unambiguous accents
restored by the model and .valid lists), the same thresholds and critical
cases.

The replay types each input through FullKeyboardEngine with the language's
bundled model and the simulator's spelling dictionary. Taps made on the
synthetic layout move onto Hex's key by key. A tap Hex's keys don't take as
a letter or space (outside them, or on 123, shift or delete, which Hex's
shorter rows let the synthetic typist hit) goes to the nearest letter or
space bar; the older out-of-tree replay dropped those, so the iOS numbers
quoted before this are 1-1.6 WER points high. Letters without a key are
picked from the long-press menu, apostrophes without a key come from the
123 page, and French's AZERTY apostrophe key (#2354) is tapped.

The test skips unless HEX_TYPING_GATE is set, so xcodebuild test is not
slower. README: a section beside the Android gate on how to run it and what
each number means.

Verified on the Studio (iPhone 17 simulator, iOS 27.2) at dev 1d9dd051:
all six languages replayed and scored (en, es pass; de, fr, it, nb fail as
listed in the README's run). code-shape.py: no hard problems.
2026-11-22 12:34:50 -05:00
..
Fixtures iOS: emoji panel with on-device suggestions (Experiments › Emoji) (#2051) 2026-11-20 15:53:24 +00:00
AppleSpeechAssetReservationsTests.swift iOS: speech model preparation that never answers fails with Try again (#2372) 2026-11-22 12:31:22 -05:00
AutocorrectEngineTests.swift iOS keyboard: a word of your own in capitals is offered, never put in for a lowercase one; "i'm" takes its capital (#2391) 2026-11-22 12:05:06 -05:00
CleanupTaggerTests.swift iOS keyboard: stale microphone errors clear, Hex key audio calls leave the main thread, counts read 1, 2, 3 (#2203) 2026-11-21 10:08:42 -05:00
CustomVocabularyTests.swift ios: custom vocabulary experiment (#1547) 2026-11-08 12:15:00 -05:00
DictationControllerTests.swift iOS: speech model preparation that never answers fails with Try again (#2372) 2026-11-22 12:31:22 -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: hold the bar to dictate, Learn how I type on, a plain centred Paste, and typing logs off (#2210) 2026-11-21 12:11:58 -05: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
EmojiPanelLettersKeyTests.swift iOS dictation: no spaces or stray full stops around Chinese and Japanese; the bar's emoji panel says Back (#2347) 2026-11-22 03:47:53 -05:00
EmojiSuggesterTests.swift iOS keyboard: stop leaking views, capture web views, and emoji indices across shows (#2352) 2026-11-22 06:45:38 -05:00
FullKeyboardEngineTests.swift iOS keyboard: Experiments › Comma and period keys beside the space bar (#2392) 2026-11-22 12:11:21 -05:00
GreeklishRomanizerTests.swift iOS: add a Greeklish experiment for Greek dictation (#2366) 2026-11-22 08:51:48 -05:00
HangulComposerTests.swift iOS keyboard: Korean two-set (두벌식) layout with Hangul composition (experiment, off by default) (#2339) 2026-11-22 04:39:53 -05:00
HexKeyGestureTests.swift iOS keyboard: Paste alone takes a tap anywhere on the bar (#2386) 2026-11-22 11:36:18 -05:00
KeyboardBridgeTests.swift iOS: Speech model in keyboard on by default for English, downloaded only where the keyboard can use it (#2390) 2026-11-22 12:18:29 -05:00
KeyboardDuoCoverTests.swift ios: smaller key labels on the duo's cover screen (#2346) 2026-11-22 04:35:44 -05:00
KeyboardLayoutTests.swift iOS keyboard: the gap above row 4 is the space bar's only over the space bar (#2395) 2026-11-22 12:24:54 -05:00
KeyboardSwitchGuessTests.swift iOS: the dictation bar can start dictating by itself (Auto-start: never, on switch, always) (#2267) 2026-11-21 17:08:50 -05:00
KeyboardThemeTests.swift iOS keyboard: add a keyboard themes experiment (#2365) 2026-11-22 08:24:11 -05:00
LaggingField.swift iOS keyboard: Korean two-set (두벌식) layout with Hangul composition (experiment, off by default) (#2339) 2026-11-22 04:39:53 -05:00
LanguageLearningTests.swift ios: learn each language separately (experiment) (#2188) 2026-11-21 09:00:58 -05:00
ShiftStateMachineTests.swift ios: add Dvorak punctuation keys experiment (#2373) 2026-11-22 09:31:25 -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 dictation: no spaces or stray full stops around Chinese and Japanese; the bar's emoji panel says Back (#2347) 2026-11-22 03:47:53 -05:00
TwoLanguageMergeTests.swift iOS: two-language dictation experiment (#2348) 2026-11-22 04:58:27 -05:00
TwoThumbSelectionTests.swift iOS: two-thumb selection on the space bar (experiment, off by default) (#2265) 2026-11-21 20:44:15 -05:00
TypingGateReplayTests.swift iOS: the typing quality gate on the iOS engine (opt-in replay) 2026-11-22 12:34:50 -05:00
TypingLogTests.swift iOS: hold the bar to dictate, Learn how I type on, a plain centred Paste, and typing logs off (#2210) 2026-11-21 12:11:58 -05:00
TypingReplayTests.swift iOS keyboard: the typing replay reports all-words accuracy, contractions and taps read as swipes (#2287) 2026-11-21 20:32:00 -05:00