Spatial autocorrect (#2059, tuned in #2091) cut English output word errors
from 10.4% to 6.5% and Spanish from 19.1% to 8.8%, so it graduates from
Experiments and is on for English and Spanish layouts by default. Other
layouts keep the dictionary engine in their own language, as before.
- Default: FullKeyboardSettings.spatialAutocorrect reads
experiments.spatialAutocorrect as object-or-true (was bool(forKey:),
unset meaning off). Only the Experiments switch ever wrote that key, and
only on a change, so unset means never touched: testers who never set it
get it on, those who turned it off (stored false) stay off, and those who
turned it on stay on. No new key or migration marker is needed; the key
keeps its old name, as experiments.fullKeyboard did.
- Settings › Keyboard: "Spatial autocorrect" now sits under Autocorrect,
shown only while Autocorrect is on, with "Uses where you tap, in English
and Spanish" (one line; zh-Hans added). Rebased onto #2093, so it sits
above Suggest swear words; the never-suggest filter still applies to
Spatial's readings.
- Settings › Experiments: the Spatial row and its two strings are removed
("Reads where your taps land…", "Needs the full keyboard with Autocorrect
on"). Experiments still has Emoji and Clean up with Apple Intelligence,
so its home row stays.
- The settings-<page> scene fixture writes spatialAutocorrect = true.
- README: where the switch lives, its default and the stored key's meaning.
Verified on an iPhone 17 simulator (iOS 27.2):
- xcodebuild test: 301 tests, 1 skipped (needs HEX_SPEECH_CLIPS), 0
failures. One earlier full run had testAcceptedJobDeliversTranscript-
EvenWhenWarmSessionCloses fail on timing; it passed 3/3 alone and in the
next full run.
- Fresh install, real HEXKeyboard in a hosted field, App Group key unset:
"ofthw" + space gave "Of the", and "fucj" gave "duck", not the swear word.
- Turned off through Settings › Keyboard: stored false, and after quitting,
a simulator reboot and two relaunches "ofthw" stayed "Ofthw".
- Memory (Release, Full Access, 3 runs each, off vs on): no difference
(keyboard phys_footprint 24.5-24.8 MB after open, 33-34 MB at the Hex
key's touch-down, peak 42-46 MB in both). Since #2091 the model is
memory-mapped at keyboard open for next-letter odds either way; the
decoder only adds a struct over it and builds your words lazily.