Skip to content

iOS keyboard: the typing replay reports all-words accuracy, contractions and taps read as swipes - #2287

Merged
thdxr merged 3 commits into
devfrom
fix-typing-replay-report
Nov 22, 2026
Merged

thdxr merged 3 commits into
devfrom
fix-typing-replay-report

Conversation

@thdxr

@thdxr thdxr commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

The typing replay report had three problems.

  • all-words-accuracy in swipe mode divided right words by in-dictionary words. It is now in-dictionary-accuracy, and both modes have a real all-words-accuracy over every recorded word. right no longer requires the dictionary, so an out-of-dictionary word the field typed correctly counts. typedRight, attempts, taps and the other in-dictionary counters still filter on inDictionary, and accuracy keeps its old meaning.
  • Tap mode keeps Swipe typing attached, so a drifting recorded tap can become a swipe. read-as-swipes counts the recorded taps the plane promoted, read from SwipeTyping's active touch before the lift.
  • Scoring keeps ASCII letters and apostrophes, straightens curly ’, and trims leading and trailing apostrophes, so quoted words ('hello') and plural possessives (dogs') stay in the dictionary. Taps ignore digits, and count an apostrophe only when the recorded word has one: autocorrect's can't for a recorded cant stays right, while a recorded don't typed dont is wrong. Taps on digit or accented input score as before. The dictionary check accepts AutocorrectEngine.englishContractions, so don't is not scored or checked as dont. Swipes compare letters only: a swipe's path runs over letter keys and cannot draw an apostrophe, and the decoder may spell a contraction with or without one, so the letters are the stable comparison. The tradeoff is that a swipe cannot distinguish well from we'll; tap scoring can.

Updated ios/README.md and ios/benchmark/typing-replay/README.md with what each accuracy counts and the new fields, and noted that Noisy Typing --set test keeps every phone test condition the default filters keep (they drop blindfolded, eyesfree_exp2, and the small/tiny keyboards), so its number is not comparable to a normal-space-only sample. docs/features has no map that describes these fields.

@thdxr
thdxr force-pushed the fix-typing-replay-report branch 8 times, most recently from bb170cf to 602b569 Compare November 22, 2026 01:00
…ons and taps read as swipes

The swipe report's all-words-accuracy divided in-dictionary right words by in-dictionary words. Rename it in-dictionary-accuracy and add an all-words-accuracy over every word, for swipes and taps. right now means the typed word matches regardless of the dictionary; the in-dictionary counters keep their filter.

Tap mode keeps Swipe typing attached, so a drifting tap can be promoted. Count those as read-as-swipes from SwipeTyping's active touch.

Scoring keeps apostrophes (curly ones straightened) and the dictionary check accepts AutocorrectEngine.englishContractions. Taps compare letters, digits and apostrophes; swipes compare letters only, since a swipe path cannot draw an apostrophe.
…ophes

Restore the tap key's ASCII-letter behaviour: digits, numbers and accented letters no longer enter the key, so accuracy for inputs without apostrophes is unchanged. Trim leading and trailing apostrophes so quoted words and plural possessives stay in the dictionary, and keep swipe keys ASCII letters only.

Correct the benchmark note: --set test keeps every phone test condition the default filters keep, not every condition in the dataset.
…as one

Autocorrect adds apostrophes to recorded words that had none (cant -> can't), and the ASCII tap key made those wrong. tapKey compares apostrophes only when the intended word has one, and align uses the same key per intended-typed pair. A recorded don't still needs its apostrophe.
@thdxr
thdxr force-pushed the fix-typing-replay-report branch from 602b569 to 9d8f316 Compare November 22, 2026 01:21
@thdxr
thdxr merged commit ea1fb6b into dev Nov 22, 2026
2 checks passed
@thdxr
thdxr deleted the fix-typing-replay-report branch November 22, 2026 01:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant