-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make Cangjie a bit more tolerant to input mistakes #5
Comments
[I wish Github had a way to move issues...] In the original issue, the following comment had been added. One idea is to use the notion of "Levenshtein edit distance". For example, if I want to type 陳, the code should be NLDW. If I mistakenly typed NLWD (not valid code) for example, the programe will check against a list of all allowed codes and return the words as the candidates with the sorted edit distance. For example Therefore, the error-tolerant input method should return |
[I wish Github had a way to move issues...] In the original issue, the following comment had been added. This is not a bad idea but I won't suggest this. Because that will cause the user unaware of their typing mistake, user will keep on typing the wrong radix set and think he/she is typing right. 牛:HQ When user typed "HQ" and hasn't finished typing, the result set will show all the results starting with "HQ". When user choose an uncompleted result, it shows the correct radix set. |
Some thoughts. Auto Suggest / Auto CorrectTo do a typing suggestion / auto-correct, I think we have to consider the source of input mistake first. On smartphones, the main source of error is the small size keyboard. Android does the auto-correct with reference to the adjacent keys. That works gracefully, but I'm not quite sure it works as well on desktop and physical keyboards. Suggest on TypeI'm using an IME called "Cangjie Keyboard" on my Android. It's very neat. One good feature is it keep showing suggestion on the way you type. However, this may not be compatible to what is already done. Mixed. Suggest on Typing MistakeA mixed approach. Instead of auto-correcting, it can show the suggestions on your typing mistake. That may also be a cool feature. |
Something I just read, which seems relevant: http://norvig.com/spell-correct.html It's obviously not 100% what we need, but the article is interesting and could be useful for our actual implementation. |
Cangjie is very unforgiving. If you make a mistake in one of the input characters, you will only discover it when you hit space, and you have to start all over again.
It could be possible to be a bit more tolerant and permissive, for example allowing other results than what the user typed, under certain conditions.
One idea is to return candidates which have input codes that are "close" to what the user typed. Another factor to add could be the surrounding characters, or the meaning of the sentence, etc...
This could be done only when no candidates are returned for example, to avoid giving the user many candidates when he actually typed the right one.
Etc...
The text was updated successfully, but these errors were encountered: