hex/ios/HEXKeyboard
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel 71b5a8ecf0
iOS: format dictated lists, and write out gonna and wanna (#2131)
* iOS: format dictated lists and spoken line breaks

An X tester asked for spoken bullet and numbered lists to come out
formatted. Settings › Dictation › Format lists (on by default,
DictationListSettings, App Group key settings.dictationFormatLists)
runs SpokenLists inside every style but Verbatim, after the fillers
and before the style's punctuation, in English and Spanish:

- "first … second …" (also 1st/2nd, primero/segundo, en primer lugar),
  "number/step/item/point one …", and "one, … two, …" become 1. lines;
- "bullet", "bullet point", "next item", "dash" (viñeta, guion) said
  twice or more become "- " lines, as the Notes style writes bullets;
- "new line" / "new paragraph" (nueva línea, nuevo párrafo, salto de
  línea) break lines, matching desktop's Labs › Spoken formatting words.

Guards keep prose: markers count up from one, two or more non-empty
items, each marker at a clause start, a bare number needs its comma,
and nouns like "the first time", "second guess", "a new line of",
"bullet points" stay. Casual now keeps a list item's capital.
Desktop has no deterministic list formatter (its OpenCode prompt asks
for "1. …" lists); the numbering matches that.

Verified: xcodebuild test on an iOS 27.2 simulator, 395 tests, 0
failures, including SpokenListsTests (lists in both languages, 62
prose sentences unchanged, lead-in plus list, every style, the
pipeline switch and Lowercase). The list inputs are Apple Speech's
own transcripts of spoken lists (SpeechTranscriber on macOS 27.2).

* iOS: Polished writes out gonna, wanna, gotta, kinda, lemme

A tester on X asked Hex to correct the "wanna" and "gonna" that
Apple's speech models write since iOS 27 (macOS 27.2's
SpeechTranscriber writes "I'm gonna call you later." too). The
Polished style (the default) now writes "going to", "want to",
"got to", "kind of" and "let me", in English only, before it
capitalizes sentences. Casual and Verbatim keep the words as heard.

Never inside straight or curly quotes, and never on a capitalized
word mid-sentence (a name or title such as "Gonna Fly Now"); one
that starts a sentence or a list item keeps its capital ("Going to").

Verified: InformalContractionTests in TranscriptCleanupTests (Polished
expansions, quotes, names, Spanish untouched, Casual and Verbatim
unchanged, list items), xcodebuild test on an iOS 27.2 simulator.
2026-11-21 03:01:16 +00:00
..
CleanupTagger iOS: clean up what I say with an on-device tagger (experiment) (#2023) 2026-11-20 01:29:41 +00:00
TypingModel iOS: spatial autocorrect experiment with Google Books models, plus accent and two-letter fixes (#2059) 2026-11-20 16:18:07 +00:00
ContainingAppOpener.swift Open Hex from the iPhone keyboard and show live keyboard setup (#599) 2026-10-31 09:56:02 -07:00
HEXKeyboard.entitlements Set up Hex Mobile internal TestFlight releases (#1997) 2026-11-19 11:48:49 -05:00
Info.plist iOS: plain permission prompts and no pre-prompt Allow button, for App Review (#2058) 2026-11-20 16:13:36 +00:00
KeyboardLocalDictation.swift iOS: format dictated lists, and write out gonna and wanna (#2131) 2026-11-21 03:01:16 +00:00
KeyboardViewController.swift iOS: Emoji and Swipe typing are on by default, under Settings › Keyboard (#2129) 2026-11-21 02:41:15 +00:00
PrivacyInfo.xcprivacy iOS: version 1.0, iPhone only, privacy manifests (#2052) 2026-11-20 15:54:01 +00:00