openboard-team / openboard

GNU General Public License v3.0
2.53k stars 252 forks source link

[Feature Request] Show suggestions after typing or selecting a word #42

Open GambaJo opened 4 years ago

GambaJo commented 4 years ago

It would be useful if the suggestions appear right after I finish typing a word or selectiong a word from the suggestions. Now the suggestions appers not until I start to type the next word. I thought the option "Suggestions for the next word" in the settings would enable this function, but it doesn't.

kojid0 commented 4 years ago

I was thinking the same until I found out that OB stores the words you write after words. So in the beginning, there won't be much suggestions for new words since it still needs to learn what words you have ever used after a specific word. Then, word suggestions will be present. Actually, I wish it was differently, but how should Openboard know which word suggestion actually makes sense?

GambaJo commented 4 years ago

I understeand. How does OB learn? I wrote a sentence two or three times. I expect, that at least after the second time I should get this words in that order in the suggestions.

dslul commented 3 years ago

It's not aggressive like other popular keyboard, but it works, and over time it gets better. Try to type: "This is a test. This is a"; it should now suggest "a", and after you click that, "test".

kojid0 commented 3 years ago

It's not aggressive like other popular keyboard, but it works, and over time it gets better. Try to type: "This is a test. This is a"; it should now suggest "a", and after you click that, "test".

What about a separate openboard app with internet connection that analyses and tracks the words you write anonymously? Depending of how many users it has, you will get a great number of possible suggestions over time and you could implement the most used words as suggestions for fellow openbaord users. This is a lot of work though, I guess. Create another app which sends user data anonymously every week or so and then select the most used words (to eliminate "private" sentences)... Although I'm a privacy enthusiast, I would definitely be fine helping to establish such a suggestion dictionary if I can send my data anonymously (even better: if needed, let the user delete some suggestions before sending)

dslul commented 3 years ago

@kojid0 I misunderstood what you said. What is already implemented is based on what you typed and not on common sentences.

kojid0 commented 3 years ago

Alrighty :-) I think #143 is a duplicate, feel free to close this issue or issue 143 or create a new one.

Helium314 commented 2 years ago

The prediciton feature without learning is actually implemented, but the dictionary needs to support it. English dicitonary has this information:

 word=and,f=212,flags=,originalFreq=212
  bigram=then,f=1
  bigram=a,f=2
  bigram=I,f=3

where the bigram words are the next-word suggestions to be shown.

So to have next-word prediction without personalized learning, this information has to be added to dictionaries.