Skip to content

B7a: Prefix-aware gesture result stripping #98

Description

@AsafMah

Part of #97.

A better fake track can make the lib return the whole word (prefix tech + swipe nology → lib returns technology). The current concat then double-counts (techtechnology / garbage).

In InputLogic.onUpdateTailBatchInputCompleted, before concatenating prefix + recognizedSuffix: if the recognized word starts (case-insensitive) with the current composing prefix, strip the prefix; else fall back to the existing seed-letter strip.

Lowest-risk step — do first; likely fixes some "almost worked" cases on its own.

Acceptance: golden-corpus (#21) A/B shows no regression; whole-word returns no longer double-count.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions