Reconsider adaptive touch correction? Slimmer proposal with details
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 12/100
Research direction
This is a design proposal, not a ready task. Read the maintainer's earlier concerns in #671 and the open pull request #680 before anything else. The payload names InputLogic as the core file the change touches, plus a separate statistics package with 17 tests. Done means the maintainers have agreed on a design, not that a patch exists. Wait for that decision before starting code.
Written by the indexing model from the issue text.
Description
Thanks again for reviewing #671. I'd like to explain the feature in more detail and offer a much slimmer version, because I think it addresses your concerns.
Why it matters
I'm an experienced, heavy phone typist. Still, over ~1,250 recorded touches about 13% landed on a neighboring key — roughly every 8th letter. And it's systematic, not random: "a" hit as "s" is consistently my most frequent miss. A fixed, per-user offset like this is exactly what adaptive touch correction fixes, and as far as I know it has been standard in mobile keyboards for many years.
What it does
The keyboard learns where this user actually touches each key, based on the words they finally commit (including reverted autocorrections and self-corrections). Once a key has enough data (30+ touches), a touch near the border between two keys is assigned to the key the user most likely meant. The shift is capped to a fraction of a key width, and the dictionary receives the corrected coordinates too.
Your concerns
- Determinism: same data, same key. It only differs from today near key borders and only after enough data. With the feature off, the exact current code path runs.
- Latency: per touch a few arithmetic operations on cached offsets, no I/O.
- Muscle memory: it adapts to the user's muscle memory instead of changing it.
- Code footprint: of the ~1.5k lines, ~1.45k are in a separate package (model, statistics screen, 17 tests). Core changes are ~115 lines.
Slimmer proposal
- One single switch ("Adapt to my typing"), fixed strength, no other settings.
- Move all recording logic out of InputLogic into the separate package, leaving ~60 lines of hooks in core.
- Optional: drop the statistics screen if you prefer.
If you're still not convinced, no problem — I'll keep it in my fork.
- Dominant language
- Kotlin
- Stars
- 1k
- Forks
- 59
- Avg merge
- 13h 21m
- Merged PRs (30d)
- 48
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from LeanBitLab/LeanType
-
Voice input fails in browser address bars due to incorrect password field detection (v4.2.9, follow-up to #516)Possibly taken @LeanBitLab claimed this today. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
LeanBitLab/LeanType#713 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
LeanBitLab/LeanType#423 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 54/100
LeanBitLab/LeanType#717 ·
Maintainers usually reply within 1 day
-
Crush ReportPossibly taken @LeanBitLab claimed this today. Open
Difficulty 3/5 1-2 days Newbie friendliness 20/100
LeanBitLab/LeanType#715 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
Text Expander/cursor-handling bugPossibly taken @LeanBitLab claimed this 3 days ago. Openbug
Difficulty 3/5 1-2 days Newbie friendliness 62/100
LeanBitLab/LeanType#703 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
All issues in LeanBitLab/LeanType
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
lysine-dev/okhttp#9814 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
getdictus/dictus-android#187 ·
Maintainers usually reply within 1 day
-
documentation follow-up
Difficulty 1/5 Under an hour Newbie friendliness 84/100
Maintainers usually reply within 1 day
-
follow-up
Difficulty 1/5 Under an hour Newbie friendliness 83/100
yschimke/meshcore-mobile#586 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Kotlin/kotlinx-io#529 ·