hex/ios/HEXMobile
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel 5f5884652d
Learn how I type: a word erased and retyped teaches only when it was a slip of the new one (#2438)
What changed: TypingLearning.isSlip(typed:final:language:) decides whether a word you erased was
plausibly a slip of the word you typed in its place: the same word with other capitals or an
apostrophe ("Im" -> "I'm"), or, both two letters or more, starting alike (the same letter, a
neighbouring key on the language's layout, or the first letter missed or one typed before it) and
at most one slip for every four letters of the new word (at least one), where a neighbouring key,
a missing accent, two swapped letters and a doubled letter count half. TypingJournal.didFinish
records a retyped pair only then (it replaces "edit distance <= max(2, half the word)", which
let "Sunda" -> "Saturday" through at 4 of 8). TypingJournalCorrection.teaches applies the same
check when a journal is read, so pairs already recorded that fail it are not counted (Typing
insights' summary), not listed (Words you fix most) and never learned (TypingLearning.derive);
no migration. Picks, autocorrections, undos and kept words are unchanged. README follows, and
says the switch per fix in Typing insights is the dictation fixes'.

Why: TestFlight build 142: Words you fix most listed "Sunda -> Saturday 1x" beside real fixes; a
change of mind was recorded as a fix, and a second one would have turned "Sunda" into
"Saturday" on space.

Verified:
- TypingJournalLearningTests.testAWordErasedForAnotherWordTeachesNothing: keeps "Ciry" ->
  "City", "Diaxuss" -> "Discuss", "Im" -> "I'm", "i" -> "I" and other slips; drops "Sunda" ->
  "Saturday", "is" -> "this", "reqe" -> "request" and other changes; German's own keys; the
  journal records only the slip; an older journal's change of mind isn't learned or counted.
- A tester's typing logs, the journal's pairs emulated: of 26 retyped pairs the old check
  recorded, it keeps 12 (all 9 slips of the final word) and drops 14 (8 of 10 different words,
  4 unfinished words finished).
- The held-out gate's typo pairs (en/es/de, 11,716 of 2+ letters the old check kept): 99.42%
  kept (en 99.8%, es 99.1%, de 99.5%), through the Swift function.
- xcodebuild test on the Studio (own simulator): 931 tests, 0 failures, 4 opt-in skips.
  code-shape.py: no hard problems.
2026-11-22 18:54:23 -05:00
..
Assets.xcassets iOS: onboarding follows the desktop flow (#2136) 2026-11-21 03:27:38 +00:00
zh-Hans.lproj iOS: plainer interface wording (copy pass) (#2345) 2026-11-22 03:45:00 -05:00
AcknowledgementsView.swift iOS keyboard: Polish autocorrects with Hex's own model, word list and capitals (#2423) 2026-11-22 14:45:55 -05:00
AppleSpeechTranscriber.swift iOS: speech model preparation that never answers fails with Try again (#2372) 2026-11-22 12:31:22 -05:00
AppShortcuts.xcstrings iOS: Simplified Chinese interface for the app, widgets and permission prompts (#2083) 2026-11-20 18:15:44 +00:00
AudioBackend.swift Labs: voice isolation for dictation on macOS and iOS (#2425) (#2429) 2026-11-22 17:00:41 -05:00
ContentView.swift iOS: Home card for Hex's own speech model, and Speech model in keyboard moves to Settings › Dictation (#2437) 2026-11-22 18:03:28 -05:00
CustomVocabularyEditor.swift iOS: Czech keyboard, and custom words for typing (#2205) 2026-11-21 10:37:55 -05:00
DictationController+Engine.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
DictationController+LaunchFixtures.swift iOS: Home card for Hex's own speech model, and Speech model in keyboard moves to Settings › Dictation (#2437) 2026-11-22 18:03:28 -05:00
DictationController+ModelPreparation.swift iOS: speech model preparation that never answers fails with Try again (#2372) 2026-11-22 12:31:22 -05:00
DictationController+WarmDefault.swift iOS: Keep mic warm defaults to Off and hides where the keyboard dictates by itself (#2393) 2026-11-22 11:58:48 -05:00
DictationController.swift iOS: Speech model in keyboard starts its download once Hex's own engine preparation ends (#2435) 2026-11-22 16:10:14 -05:00
EmojiSemanticIndex.swift iOS: emoji panel with on-device suggestions (Experiments › Emoji) (#2051) 2026-11-20 15:53:24 +00:00
FullKeyboardSnapshotStage.swift iOS keyboard: a New speech model notice in the bar that opens Hex (#2436) 2026-11-22 18:03:50 -05:00
HexIntents.swift iOS: plainer interface wording (copy pass) (#2345) 2026-11-22 03:45:00 -05:00
HexLinks.swift iOS: privacy and support links in the app, Continue before the mic prompt, typing logs consent (#2063) 2026-11-20 16:23:37 +00:00
HEXMobile.entitlements Set up Hex Mobile internal TestFlight releases (#1997) 2026-11-19 11:48:49 -05:00
HEXMobileApp.swift iOS: Home card for Hex's own speech model, and Speech model in keyboard moves to Settings › Dictation (#2437) 2026-11-22 18:03:28 -05:00
Info.plist iOS: plainer interface wording (copy pass) (#2345) 2026-11-22 03:45:00 -05:00
KeyboardParakeetDownload.swift iOS: Home card for Hex's own speech model, and Speech model in keyboard moves to Settings › Dictation (#2437) 2026-11-22 18:03:28 -05:00
KeyboardPreviewHost.swift iOS keyboard: remove the "Logging" mark; Record typing logs is only the switch (#2382) 2026-11-22 10:50:35 -05:00
KeyboardSetup.swift iOS: tappable Paste from Other Apps notice and app Settings card (#2394) 2026-11-22 11:13:25 -08:00
KeyboardSpeechPreparation.swift iOS: speech model preparation that never answers fails with Try again (#2372) 2026-11-22 12:31:22 -05:00
LanguageSettingsRows.swift iOS keyboard: English and German together type on the first one's keys, as Apple's bilingual keyboard (#2402) 2026-11-22 12:55:14 -05:00
LiveActivityCoordinator.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
Localizable.xcstrings iOS keyboard: a New speech model notice in the bar that opens Hex (#2436) 2026-11-22 18:03:50 -05:00
Onboarding.swift iOS: plainer interface wording (copy pass) (#2345) 2026-11-22 03:45:00 -05:00
OnboardingPieces.swift iOS: plainer interface wording (copy pass) (#2345) 2026-11-22 03:45:00 -05:00
OnboardingProgress.swift iOS: onboarding always shows the Hex key, and practice needs Hex's dictation (#2211) 2026-11-21 12:20:32 -05:00
OnDeviceSpeechTranscriber.swift iOS: plainer interface wording (copy pass) (#2345) 2026-11-22 03:45:00 -05:00
ParakeetTranscriber.swift iOS: Home card for Hex's own speech model, and Speech model in keyboard moves to Settings › Dictation (#2437) 2026-11-22 18:03:28 -05:00
ParakeetUltraDownload.swift iOS: speech model preparation that never answers fails with Try again (#2372) 2026-11-22 12:31:22 -05:00
ParakeetUltraModel.swift iOS: Home card for Hex's own speech model, and Speech model in keyboard moves to Settings › Dictation (#2437) 2026-11-22 18:03:28 -05:00
ParakeetUltraTranscriber.swift iOS: plainer interface wording (copy pass) (#2345) 2026-11-22 03:45:00 -05:00
PrivacyInfo.xcprivacy iOS: version 1.0, iPhone only, privacy manifests (#2052) 2026-11-20 15:54:01 +00:00
SettingsComponents.swift Labs: voice isolation for dictation on macOS and iOS (#2425) (#2429) 2026-11-22 17:00:41 -05:00
SettingsPages.swift iOS: Home card for Hex's own speech model, and Speech model in keyboard moves to Settings › Dictation (#2437) 2026-11-22 18:03:28 -05:00
SpeechEngineChoice.swift iOS: plainer interface wording (copy pass) (#2345) 2026-11-22 03:45:00 -05:00
SpeechModelMove.swift iOS: Speech model in keyboard on by default for English, downloaded only where the keyboard can use it (#2390) 2026-11-22 12:18:29 -05:00
TranscriptCleanup.swift fix(labs): Apple Intelligence cleanup never pastes an answer or a preamble (#2212) 2026-11-21 13:43:24 -05:00
TranslateDictationRow.swift iOS: plainer interface wording (copy pass) (#2345) 2026-11-22 03:45:00 -05:00
TranslationSessionHost.swift iOS: Apple's on-device recognizer for older iPhones and languages Parakeet can't do, and iOS 18 translation (#2190) 2026-11-21 08:49:11 -05:00
TypingInsightsView.swift Learn how I type: a word erased and retyped teaches only when it was a slip of the new one (#2438) 2026-11-22 18:54:23 -05:00
TypingLogsView.swift iOS: plainer interface wording (copy pass) (#2345) 2026-11-22 03:45:00 -05:00