grammatek / grammatek/simacorrect

Suggestions looping bug

Open
#22 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
3
Forks
0
PR merge metrics
No merged PRs in 30d

Description

If I get 2 suggestions for 1 annotation and select one of them and get a suggestion for the same word I'll get my original word as a suggestion.
E.g. if I write `eg dreymi` I will get 2 suggestions for `eg`, `ég` and `mig`.
If I select the suggestion `ég` I will have the text `ég dreymi` and we don't get any more suggestions at this point.
If I continue typing and add the word `að` a new API request is triggered to check the input text `ég dreymi að`, now we get a suggestion again for the first word `ég`, except in this case Yfirlestur suggests only the word `mig` but what also comes as a suggestion is `eg`, the original word typed by the user.

This additional suggestion `eg` is not being given by the web service nor being stored anywhere in the spell checker service, this is being stored in the UI layer which interfaces text input boxes.

Interestingly enough, this occurs only on android version 12 and newer, meaning I'm unable to reproduce this on android version 11. There were some changes to android.view.textservice on version 12 that are likely causing this but one would need to take a deep dive to investigate this further.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.