Skip to content

bug(web): selecting ការ in predictive text then pressing space gives suggestions starting with ការ #16587

Description

@mcdurdin

For example:

  1. select ការ
  2. press spacebar
  3. predictions show words starting with ការ - which does not really seem right
  4. select ការងារ
  5. result is កាការងារ

Not really sure what intent is but deleting រ from first instance of ការ is definitely wrong.

Keyman for Android 19.0.286-alpha
Khmer Angkor keyboard 2.4.1
Khmer Google Crawler lexical model 2.0

Activity

  1. mcdurdin commented on Sep 17, 2026

    @mcdurdin
    MemberAuthor
    Screen_Recording_20260917_152939_Keyman-local.mp4
  2. added this to the B19S2 milestone on Sep 18, 2026
  3. jahorton commented on Sep 18, 2026

    @jahorton
    Contributor

    See also #16585 (comment); I believe the underlying cause may be the same, as missing whitespace spans would likely be "invisible" in cached tokenized context, thus the start of a new word would alias to the end of the previous word.

    That said, I think I did previously enhance the khmer_angkor model somewhat, so I should probably inspect a bit deeper. We'd definitely see this comment's noted affects for mon_anonta, at the least.

  4. jahorton commented on Sep 18, 2026

    @jahorton
    Contributor

    OK, I've confirmed that the sil.km.gcc model would be suspect to the same issues - it uses a similar, but enhanced, .split().

  5. modified the milestones: B19S2, B19S3 on Sep 27, 2026
  6. modified the milestones: B19S3, B19S4 on Oct 12, 2026
  7. modified the milestones: B19S4, B19S5 on Oct 24, 2026
  8. jahorton commented on Oct 27, 2026

    @jahorton
    Contributor

    Took me a while to get back to this; see the following:

    I'm also working on a smaller-scale fix to address cases where a context-final empty token isn't properly emitted; that part is kinda simple to detect. Interestingly, there are some edge cases in our current wordbreakers where it's missing, so I should address those too.

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

Metadata

Metadata

Assignees

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions