hex/ios/HEXMobileTests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel 7fee11c393 iOS keyboard: bound the marked-letter lookups each letter makes
Review of #2380: on a language's own keys the strip asked the dictionary for every marked
spelling of each prefix (up to 256). Timed on the iPhone 17 simulator, iOS 27.2, 300
sentences each typed at key centres with marked letters typed plain: French alone went
from 2.88 ms to 7.54 ms a letter at the 95th percentile (15.2 ms at the 99th, up to 252
lookups a letter), Portuguese 2.95 -> 5.94 ms (260 lookups).

- A letter typed tries only the 8 spellings with the fewest marks (markedSpellings'
  partial mode makes them in that order and stops), and leaves ranking by the guesses
  (a slow call) to space.
- Space's fix (checkingWholeWord, wrapping cautiousReplacement in replacementOnSpace)
  still tries up to 256 spellings (48 for a partner) and ranks them, as before: what space
  puts in is unchanged. A letter's cached answer serves space only when it covered every
  spelling.
- The strip's marked word is looked for only when the dictionary doesn't know the word as
  typed, or it is two letters ("ze" still offers "że", "ou" "où").
- Whether a dictionary takes any letters is asked once per dictionary and language.

Measured (same 300 sentences, origin/dev 90a10a52 vs this head, two runs each):
French letters p95 3.09 -> 3.39/3.72 ms, p99 4.57 -> 4.84/5.30, 1.4 -> 6.1 lookups a
letter (worst 20); Portuguese letters p95 2.95 -> 3.65/3.86, 6.0 lookups (worst 20);
Polish (PoliMorf as the dictionary) letters p95 0.010 -> 0.019 ms. Spaces now carry the
whole-word search once a word: French p95 1.19 -> 1.72/1.89 ms, p99 2.1 -> 7.5/9.3 ms,
worst 250 lookups.
2026-11-22 11:02:48 -05:00
..
Fixtures iOS: emoji panel with on-device suggestions (Experiments › Emoji) (#2051) 2026-11-20 15:53:24 +00:00
AutocorrectEngineTests.swift iOS keyboard: bound the marked-letter lookups each letter makes 2026-11-22 11:02:48 -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: a working dictation is never taken away by a guess, and no speech model check sits forever (#2371) 2026-11-22 08:56:10 -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: add Dvorak punctuation keys experiment (#2373) 2026-11-22 09:31:25 -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: Undo dictation works after the cursor moves, and goes when it can't (#2240) 2026-11-21 15:15:23 -05:00
KeyboardBridgeTests.swift iOS: add a Greeklish experiment for Greek dictation (#2366) 2026-11-22 08:51:48 -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 four rows share Apple's 4 pt below the view; the gap above row 4 is row 4's (#2379) 2026-11-22 10:21:30 -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
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