aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/android/inputmethod/latin/UserDictionary.java
diff options
context:
space:
mode:
authorAmith Yamasani <yamasani@google.com>2010-02-05 14:07:04 -0800
committerAmith Yamasani <yamasani@google.com>2010-02-08 15:22:37 -0800
commit1b62ff1a3d61cd44ab88acdfcbdf0fc70a7e1b10 (patch)
tree17739a10acf4f7f9e70b82ba4d0a2f1c17c914b4 /src/com/android/inputmethod/latin/UserDictionary.java
parent8fa317a61a2152347c59dda7eb1b8e2979f6cc1d (diff)
downloadlatinime-1b62ff1a3d61cd44ab88acdfcbdf0fc70a7e1b10.tar.gz
latinime-1b62ff1a3d61cd44ab88acdfcbdf0fc70a7e1b10.tar.xz
latinime-1b62ff1a3d61cd44ab88acdfcbdf0fc70a7e1b10.zip
Increase target size of preferred letters while typing.
This increases the chance of hitting the correct letter when typing a word that exists in the dictionary, rather than only correct it after the fact. It is most effective after 2 or 3 letters of a word have been typed and gets more accurate with more typed letters in the word. If 2 adjacent letters have similar probabilities of occuring, then there is no hit correction applied.
Diffstat (limited to '')
-rw-r--r--src/com/android/inputmethod/latin/UserDictionary.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/android/inputmethod/latin/UserDictionary.java b/src/com/android/inputmethod/latin/UserDictionary.java
index 2f3447abd..edd82aaa3 100644
--- a/src/com/android/inputmethod/latin/UserDictionary.java
+++ b/src/com/android/inputmethod/latin/UserDictionary.java
@@ -94,9 +94,10 @@ public class UserDictionary extends ExpandableDictionary {
}
@Override
- public synchronized void getWords(final WordComposer codes, final WordCallback callback) {
+ public synchronized void getWords(final WordComposer codes, final WordCallback callback,
+ int[] nextLettersFrequencies) {
if (mRequiresReload) loadDictionary();
- super.getWords(codes, callback);
+ super.getWords(codes, callback, nextLettersFrequencies);
}
@Override