feat(typing): adaptive key geometry - learns where you tap (opt-in)#107
Open
SHAWNERZZ wants to merge 1 commit into
Open
feat(typing): adaptive key geometry - learns where you tap (opt-in)#107SHAWNERZZ wants to merge 1 commit into
SHAWNERZZ wants to merge 1 commit into
Conversation
…cency window Opt-in (off by default), content-free, incognito-gated. The keyboard learns each user per-key landing offsets and biases tap resolution and gesture sweet-spots toward where they actually type. Two independently-toggleable halves that share a strength slider: learned per-key geometry, and a next-key context prior from the suggestion strip. A stats screen shows a heat-map of the learned model. Safety: the bias is capped (a clear on-key press can never flip to a neighbor), ramps in with sample count, and is gated so a neighbor can only win a near-boundary tap. Reset is reliable (delete serialized with writes). A selectable time-decay forget window (1-12 months, default 3) fades stale geometry so the model tracks recent typing - no schema change (reuses updatedAt). Unit-tested decay/cap math. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this adds
Opt-in (off by default) adaptive key geometry: the keyboard learns where you actually land on each key and shifts its invisible hit-targets to match, so consistently off-center taps still register as the key you meant. Two independently-toggleable parts that share one strength slider:
A stats screen shows a heat-map of your learned model; an optional debug overlay visualizes the targets on the live keyboard.
Safety / non-invasiveness
leantype.db.Recency window
A selectable time-decay "forget window" (1–12 months, default 3): learned geometry fades by a wall-clock half-life, so the model tracks recent typing rather than an unbounded all-time average. No schema change (reuses the existing
updatedAt). The decay and cap math are unit-tested.Notes
devper CONTRIBUTING. Compiles standalone ondev;TouchModelManagerTestpasses.