hex/ios/HEXShared
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel deb84b6082
iOS: no hyphens from autocorrect, completions ranked by frequency (#2041)
* iOS keyboard: never autocorrect into a hyphen; split a missed space into two words

What: AutocorrectEngine now passes every UITextChecker guess through
usableGuess before autocorrect or the strip uses it. A guess may add no
character you didn't type except letters and a contraction's apostrophe,
so "t.b." for "tb" or "x-y" for "xy" is never applied or shown. A guess
that splits the word in two ("up-to" or "up to" for "upto") is used only
as two words with a space, and only when its letters are exactly the
typed ones (a missed space), both halves are dictionary words (two or
more letters, or English "a"/"I", since UITextChecker accepts every
single letter), and the checker offers the spaced form itself.

Why: Record typing logs showed a missed space corrected into a
hyphenated compound. The old loop skipped spaced guesses but let the
hyphenated one through as a cheap one-character insertion. Removed: that
hyphen path; replaced by the spaced form under the rules above.

Verified: xcodebuild test on the iPhone 18 Pro simulator (iOS 27.2) for
AutocorrectEngineTests (4 new tests: missed space, the split rules,
punctuation, and the system dictionary's "nevermind" -> "never mind"),
FullKeyboardEngineTests, TypingLogTests, DictationLearningTests: 40
tests, 0 failures.

* iOS keyboard: rank completions by frequency, names last, no repeated literal

What: the suggestion strip's completions now keep UITextChecker's own
order, which is most probable first (Apple's documented order; on iOS 27
"b" lists but, be, because and "th" lists the, they, that's), instead of
re-sorting it by length and then alphabetically. UILexicon terms
(Contacts names and text replacements) now rank after the dictionary's
completions instead of ahead of everything, and a capitalised name ranks
after every other completion unless the typed word starts with a
capital. A completion equal to what was typed is dropped, one-letter
words get completions too, and when nothing is left the strip shows only
the typed word on the left instead of repeating it in the centre.

Why: Record typing logs showed contact names and job titles from the
lexicon taking the centre slot for common prefixes (a surname over "the"
for "th"), and one-letter words repeating the literal as the primary.
Removed: the lexicon-first pass (up to three terms before any spelling
guess) and the length/alphabetical sort. The frequency source is the
existing UITextChecker; no word list was added.

Verified: xcodebuild test on the iPhone 18 Pro simulator (iOS 27.2),
AutocorrectEngineTests: 16 tests, 0 failures (4 new: frequency order
ahead of contacts, names demoted unless capitalised, no repeated
literal, and the system dictionary's order for "b" and "th").
2026-11-20 13:49:49 +00:00
..
FullKeyboard iOS: no hyphens from autocorrect, completions ranked by frequency (#2041) 2026-11-20 13:49:49 +00:00
TypingLog iOS: Norwegian, Spanish and German full-keyboard layouts 2026-11-20 07:52:48 -05:00
AppleIntelligenceCleanupSettings.swift ios: optional Apple Intelligence transcript cleanup (experiment) (#1538) 2026-11-08 08:07:11 -05:00
AppleSpeechModule.swift iOS: switch the dictation language from the keyboard 2026-11-20 07:52:38 -05:00
CleanupReconstruction.swift iOS: clean up what I say with an on-device tagger (experiment) (#2023) 2026-11-20 01:29:41 +00:00
CleanupTagger.swift iOS: dictate in every language Apple Speech has on device 2026-11-20 07:52:32 -05:00
CleanupTokenizer.swift iOS: clean up what I say with an on-device tagger (experiment) (#2023) 2026-11-20 01:29:41 +00:00
CustomVocabularySettings.swift ios: custom vocabulary experiment (#1547) 2026-11-08 12:15:00 -05:00
DictationCorrections.swift ios: learn dictation and typing fixes from edits (Learn how I type) (#2022) 2026-11-20 01:04:58 +00:00
DictationEditInference.swift ios: learn dictation and typing fixes from edits (Learn how I type) (#2022) 2026-11-20 01:04:58 +00:00
DictationEditTracker.swift ios: learn dictation and typing fixes from edits (Learn how I type) (#2022) 2026-11-20 01:04:58 +00:00
DictationLanguage.swift iOS: Norwegian, Spanish and German full-keyboard layouts 2026-11-20 07:52:48 -05:00
DictationLanguageSwitch.swift iOS: switch the dictation language from the keyboard 2026-11-20 07:52:38 -05:00
DictationTranslation.swift iOS: dictate in every language Apple Speech has on device 2026-11-20 07:52:32 -05:00
DotScope.swift iOS: dictate from the keyboard without opening Hex, plus suggestions, autocorrect, and Paste (#1999) 2026-11-19 12:20:12 -05:00
DotScopeShader.metal fix(ios): eliminate handoff frame stalls and add overlapping ballistic swipe throw (t1153) (#757) 2026-10-31 22:14:22 -07:00
EmptyCapture.swift iOS: fix six TestFlight tester issues (audio error, leaked error text, Live Activity, haptics, capitals, push to talk) (#2035) 2026-11-20 13:21:16 +00:00
HexTheme.swift fix(ios): eliminate handoff frame stalls and add overlapping ballistic swipe throw (t1153) (#757) 2026-10-31 22:14:22 -07:00
HomeSwipeCue.swift fix(ios): eliminate handoff frame stalls and add overlapping ballistic swipe throw (t1153) (#757) 2026-10-31 22:14:22 -07:00
KeyboardBridge.swift ios: record raw typing logs from Hex's keyboard (experiment) (#2024) 2026-11-20 02:13:16 +00:00
KeyboardSurface.swift iOS: fix six TestFlight tester issues (audio error, leaked error text, Live Activity, haptics, capitals, push to talk) (#2035) 2026-11-20 13:21:16 +00:00
TranscriptFormatter.swift iOS: fix six TestFlight tester issues (audio error, leaked error text, Live Activity, haptics, capitals, push to talk) (#2035) 2026-11-20 13:21:16 +00:00
UserFacingError.swift iOS: fix six TestFlight tester issues (audio error, leaked error text, Live Activity, haptics, capitals, push to talk) (#2035) 2026-11-20 13:21:16 +00:00
VocabularySpelling.swift ios: custom vocabulary experiment (#1547) 2026-11-08 12:15:00 -05:00