mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-28 13:02:21 +01:00
| Filename | Latest commit message | Latest commit date |
|---|---|---|
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
|
||
| .. | ||
| CleanupTagger | ||
| TypingModel | ||
| AppleLiveTranscriber.swift | ||
| ContainingAppOpener.swift | ||
| HEXKeyboard.entitlements | ||
| Info.plist | ||
| KeyboardInputView.swift | ||
| KeyboardLiveDictation.swift | ||
| KeyboardLiveTyping.swift | ||
| KeyboardLocalDictation.swift | ||
| KeyboardParakeet.swift | ||
| KeyboardViewController.swift | ||
| ParakeetLiveTranscriber.swift | ||
| PrivacyInfo.xcprivacy | ||