hex/ios/HEXMobile
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel 06ac30afaa
iOS dictation: spoken numbers written in digits for every engine (Numbers as digits) (#2414)
Parakeet V2, the keyboard's default English engine since build 130, sometimes
writes a whole sentence in words ("The ratio is five point five.", "november
twenty second"). Apple's SpeechTranscriber writes digits. Across 80 dictated
sentences, Parakeet wrote words where Apple wrote digits in 53 in Ryan's cloned
voice and 11 in macOS voices; runs were deterministic
(experiments/2026-11-22-hex-numbers).

What changed:
- Add SpokenNumbers (ios/HEXShared/SpokenNumbers.swift), a self-contained
  English text rule. It writes these in digits as Apple does: decimals,
  percentages, numbers from ten up and compounds, years, money with "dollars",
  two to nine before a plural noun or unit, ranges with a unit, times with
  am/pm/o'clock, ordinals in dates, three or more spoken digits, and
  minus/negative before a number. Where Apple writes wrong digits, the words
  stay ("three thirty", "four ninety nine", "one and a half", "a second").
  "one" on its own, fractions, scores, ordinals outside dates and
  ambiguous runs are left for later. Text that already has digits is unchanged.
- It runs in CleanupTagger.cleanIfEnabled, after Spoken counts and before the
  tagger, in every style but Verbatim, through DictationPipeline.numbersAsDigits
  in the app (DictationController, read at start) and in-keyboard dictation.
- Add Settings > Dictation > Numbers as digits, on by default
  (DictationNumberSettings in the App Group), with Simplified Chinese strings.
- Document it in ios/README.md beside Spoken counts.

Verified:
- xcodebuild test on the Mac Studio (iPhone 17 Pro simulator, iOS 27.2),
  rebased on dev 3f353485: 898 tests, 0 failures, 4 skipped. New:
  - SpokenCleanupRulesTests: 166 cases covering every raw text either engine
    wrote for the 80 sentences in both voices; 24 more conversions; 45 that
    must not change; other languages, Verbatim, switch off, default.
  - CleanupTaggerTests: all 137 hand-written tagger sentences clean up the
    same with the rule on.
- Corpus of 755 texts (LibriSpeech hypotheses from Parakeet V2/V3 and Apple,
  synthetic English clips, tagger sentences, emoji messages): no sentence
  without a spoken number changed; the 28 that changed all hold real counts.
- python3 scripts/code-shape.py passes.
- Settings > Dictation checked in the simulator, English and zh-Hans.
2026-11-22 13:55:16 -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: French reads Hex's own word list and capitals, not the phone's dictionary (#2404) 2026-11-22 13:34:40 -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 iOS: a warm session dictates in the background on iOS 27 again, and a keyboard that opens Hex brings the warm default back (#2406) 2026-11-22 13:12:24 -05:00
ContentView.swift iOS: the setup sheet's Speech model row shows only the language; home says Dictate after a microphone failure (#2399) 2026-11-22 12:42:09 -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: Settings and the setup sheet say what needs Full Access (#2304) 2026-11-21 21:35:58 -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 dictation: spoken numbers written in digits for every engine (Numbers as digits) (#2414) 2026-11-22 13:55:16 -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: remove the "Logging" mark; Record typing logs is only the switch (#2382) 2026-11-22 10:50:35 -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: Experiments › Speech model in keyboard: Parakeet in the keyboard, with the app closed (off by default) (#2381) 2026-11-22 10:44:16 -05:00
Info.plist iOS: plainer interface wording (copy pass) (#2345) 2026-11-22 03:45:00 -05:00
KeyboardParakeetDownload.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
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: the setup sheet's Speech model row shows only the language; home says Dictate after a microphone failure (#2399) 2026-11-22 12:42:09 -05: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 dictation: spoken numbers written in digits for every engine (Numbers as digits) (#2414) 2026-11-22 13:55:16 -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: 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
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: Experiments › Speech model in keyboard: Parakeet in the keyboard, with the app closed (off by default) (#2381) 2026-11-22 10:44:16 -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 iOS keyboard: Show what I say and Type as I speak (words while you dictate) (#2410) 2026-11-22 13:37:37 -05:00
SettingsPages.swift iOS dictation: spoken numbers written in digits for every engine (Numbers as digits) (#2414) 2026-11-22 13:55:16 -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 iOS: plainer interface wording (copy pass) (#2345) 2026-11-22 03:45:00 -05:00
TypingLogsView.swift iOS: plainer interface wording (copy pass) (#2345) 2026-11-22 03:45:00 -05:00