hex/ios/HEXShared/TypingLog
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel 00c8790109
iOS: next-word suggestions and fewer wrong autocorrections (#2125)
* iOS: offer next words from the bundled keyboard bigrams

Replace the empty word strip after a completed word with up to three tap-only continuations from its mapped language-model row. Keep clipboard, dictation and emoji offers ahead of idle predictions; an outdated pick never deletes a new token.

Verified two simulator tests and 2,000 held-out sentences per language. Next-word top-three hits increased from zero to 2,250/11,639 (EN) and 2,013/11,058 (ES), with identical output for every sentence and no additional broken words.

* iOS: require more evidence to drop a distinct keyboard tap

A repeated key or ambiguous border touch retains the original extra-tap cost. Discarding an isolated tap aimed clearly at another key adds up to four nats of cost, so a common phrase is less likely to erase a letter the user meant, as in 'I promised Tom'.

Verified 102 autocorrect/keyboard tests with the capitalization switch and the held-out bilingual benchmark: EN edits 892→824, correct words broken 113→79; ES edits 1168→1145, broken 26→23.

* iOS: complete short prefixes using the preceding word

Use the shipped model's prefix range and bigram row for tap-only completions. Give the predicted completion a slot when no fix is pending; keep automatic corrections ahead of it and preserve typed case.

Verified on 2,000 held-out sentences per language. Top-three hits after two taps rose from 2,250 to 3,262 in English and 466 to 2,924 in Spanish, with identical final text and broken-word counts. Whole-word strip hits changed by -1 EN/-2 ES. Tested English and Spanish completions with automatic capitalization disabled.
2026-11-21 01:13:08 +00:00
..
DictationStages.swift ios: record raw typing logs from Hex's keyboard (experiment) (#2024) 2026-11-20 02:13:16 +00:00
TypingLogEvent.swift ios: record raw typing logs from Hex's keyboard (experiment) (#2024) 2026-11-20 02:13:16 +00:00
TypingLogger.swift iOS: next-word suggestions and fewer wrong autocorrections (#2125) 2026-11-21 01:13:08 +00:00
TypingLogSession.swift ios: record raw typing logs from Hex's keyboard (experiment) (#2024) 2026-11-20 02:13:16 +00:00
TypingLogStore.swift ios: record raw typing logs from Hex's keyboard (experiment) (#2024) 2026-11-20 02:13:16 +00:00