hex/ios/HEXMobileTests
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
..
Fixtures iOS: emoji panel with on-device suggestions (Experiments › Emoji) (#2051) 2026-11-20 15:53:24 +00:00
AutocorrectEngineTests.swift iOS: Ukrainian keyboard layout (#2128) 2026-11-21 02:30:15 +00:00
CleanupTaggerTests.swift iOS: Italian, French and Portuguese layouts that autocorrect in their own language; spoken @ and email addresses (#2069) 2026-11-20 16:43:10 +00:00
CustomVocabularyTests.swift ios: custom vocabulary experiment (#1547) 2026-11-08 12:15:00 -05:00
DictationControllerTests.swift iOS: Ukrainian keyboard layout (#2128) 2026-11-21 02:30:15 +00:00
DictationLearningTests.swift ios: learn dictation and typing fixes from edits (Learn how I type) (#2022) 2026-11-20 01:04:58 +00:00
DotScopeTests.swift fix(ios): eliminate handoff frame stalls and add overlapping ballistic swipe throw (t1153) (#757) 2026-10-31 22:14:22 -07:00
EmojiSuggesterTests.swift iOS: emoji panel with on-device suggestions (Experiments › Emoji) (#2051) 2026-11-20 15:53:24 +00:00
FullKeyboardEngineTests.swift iOS: Emoji and Swipe typing are on by default, under Settings › Keyboard (#2129) 2026-11-21 02:41:15 +00:00
HexKeyGestureTests.swift iOS: the keyboard starts listening on touch-down, with its capture page ready when it opens (#2089) 2026-11-20 20:04:35 +00:00
KeyboardBridgeTests.swift iOS: Hinglish dictation, Hindi in Latin letters (Experiment, off by default) (#2119) 2026-11-21 00:29:24 +00:00
KeyboardLayoutTests.swift iOS: Emoji and Swipe typing are on by default, under Settings › Keyboard (#2129) 2026-11-21 02:41:15 +00:00
ShiftStateMachineTests.swift iOS: full keyboard experiment flag, key layout and shift model (#910) 2026-11-01 12:43:35 -08:00
SwipeDecoderTests.swift iOS: swipe typing for English and Spanish (Experiment, off by default) (#2106) 2026-11-20 22:30:53 +00:00
TranscriptCleanupTests.swift iOS: format dictated lists, and write out gonna and wanna (#2131) 2026-11-21 03:01:16 +00:00
TypingLogTests.swift iOS: Norwegian, Spanish and German full-keyboard layouts 2026-11-20 07:52:48 -05:00