mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
| Filename | Latest commit message | Latest commit date |
|---|---|---|
What: FullKeyboardEngine.key(at:) picks the key a touch presses: the one under it, or a neighbouring letter within letterReach (5 pt) of the touch whose odds of coming next in the word beat the touched letter's by 0.8 nats for every point it reaches past its own target. The odds are the word list's frequency mass after what is typed (TypingDecoderModel.continuations; accented letters without a key of their own count toward their base). It applies only on the letters page of a text field, with autocorrect on and allowed by the field, outside caps lock, for English and Spanish, whose Spatial autocorrect models FullKeyboardView now maps whether or not that experiment is on (other layouts keep fixed targets). A touch a letter claimed keeps it while a rolling finger stays within reach, so a point of jitter doesn't slide it back. Record typing logs' began line names the key pressed, with `under` when the odds moved it (docs/typing-logs.md). The ios/README.md gains a Touch targets section for this and the two previous commits. Why: Apple's keyboard does this (AXe on the iPhone 18 Pro simulator: after "th" a tap 10 pt inside d types e; with nothing typed its row borders sit within about 2 pt of the gaps' middles), and Hex's targets were fixed. A fixed upward offset was measured and left out: moving each of 643 labelled logged taps up by 2 to 8 pt landed no more of them on the meant key (586 at 0, 583 to 562 shifted). Verified with a benchmark harness (kept outside the repo) that types taps through FullKeyboardEngine; 5 pt and 0.8 nats/pt chosen on dev sets, checked on held-out sets: - held-out English (2,000 Tatoeba sentences typed with a touch model fitted to real typing logs, 13,870 words): words mistyped before autocorrect 3,814 -> 2,504 (names aside); output word error rate with default autocorrect 13.2% -> 10.4%, with Spatial 8.5% -> 7.9%. Taps the odds moved broke 98 words that were typed right and fixed 1,561 (8 pt: 112 and 1,921). - held-out Spanish (13,301 words): default 22.9% -> 19.1%, Spatial 10.4% -> 10.2%; broke 46, fixed 1,451. - fat-finger sentences (180, 1,614 words): default 15.3% -> 12.9%, Spatial 6.2% -> 5.3%. Real logged words (172): default 10.5% -> 9.3%, Spatial 4.1% both. - the tester's sentence, 30 tap draws: 51 of 360 slipped words now typed right before autocorrect; Spatial 6.7% -> 6.3%. New FullKeyboardEngineTests: the e/d border after "th" and "an", past the reach, with autocorrect off or disallowed, a rolled finger; and the tester's sentence from "but", tapped, through Spatial autocorrect. Full suite: 280 tests, 0 failures. |
||
| .. | ||
| typing-logs.md | ||