Helium314 / HeliBoard

Customizable and privacy-conscious open-source keyboard
Apache License 2.0
2.45k stars 97 forks source link

Garbage words suggested by glide typing #48

Open Helium314 opened 1 year ago

Helium314 commented 1 year ago

Does it happen in OpenBoard, or is it exclusive to this modified version? Not possible in OpenBoard

Describe the bug When using glide typing (with google library), sometimes words are suggested that are not in any dictionary. This is not 100% reproducible though.

To Reproduce Steps to reproduce the behavior:

  1. Load google glide typing library
  2. Try glide-typing something like "ecog"
  3. See "exog" as suggestion, which is not in the used dictionary (US English)

Expected behavior Only "normal" words suggested.

The source of this issue is possibly in the google library I used, but we can't change the library. The straightforward idea of checking whether the word actually is in dictionary will not work, because words only existing as "shortcut" in dictionary / word lists are seen as not in dictionary. So checking whether something is in dictionary would mean such shortcut words are not suggested, which includes all emojis from the emoji dictionaries.

App version Probably all, including build from latest source as of today

Smartphone (please complete the following information):

russianspy1234 commented 11 months ago

This is probably a dumb idea, but could one just add code to manually delete a bunch of the junk suggestions? Maybe as a clickable button in the app. You could generate a list of all combinations of 3,4, and 5 letters (most of the junk suggestions I've seen are in that range), compare it with a list of English words to remove them, and then use whats left to just delete them from the dictionary. The part I'm not sure about is if it's even possible to delete a suggestion from the dictionary automatically like that, just because it's possible to do it via holding the suggestion and clicking delete.

ghost commented 7 months ago

It's like everything in the world is included, every possible abbreviation, acronym, etc. I'm building up a very large blacklist ๐Ÿ˜‚ slowly because you can only delete one word at a time and often I end up selecting the word because of the tiny trash can โ€” my hands are small, the trash can is far to small.

It's like I have to train this keyboard word by word. Most people use a very limited number of words, I think it's like 800, and the main en-us dictionary is over 2MB โ€” to many words for a phone keyboard IMO. We aren't writing war and peace ๐Ÿ˜ this has been a problem with many keyboards I've used in android โ€” they use overly large dictionaries and that leads to poor corrections, worse suggestions, and slow response. 2ยข ๐Ÿคทโ€โ™‚๏ธ