diff options
author | 2012-05-29 04:43:54 -0700 | |
---|---|---|
committer | 2012-05-29 04:43:54 -0700 | |
commit | 961e676b9a6b8282b1049715523aa520d3b6a6e5 (patch) | |
tree | 80b2e356c2fa93334c2311d210afbbf1cdbc508b /java/src/com/android/inputmethod/latin/Dictionary.java | |
parent | 9a3211802baf11e5749a080e4f451ef7b795220b (diff) | |
parent | c88f61215c5b9ca6e0cc3f776e3b7da19eec9cae (diff) | |
download | latinime-961e676b9a6b8282b1049715523aa520d3b6a6e5.tar.gz latinime-961e676b9a6b8282b1049715523aa520d3b6a6e5.tar.xz latinime-961e676b9a6b8282b1049715523aa520d3b6a6e5.zip |
Merge "Set level 1 as the initial value of the valid words" into jb-dev
Diffstat (limited to 'java/src/com/android/inputmethod/latin/Dictionary.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/Dictionary.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/Dictionary.java b/java/src/com/android/inputmethod/latin/Dictionary.java index 231e9ab81..7cd9bc2a8 100644 --- a/java/src/com/android/inputmethod/latin/Dictionary.java +++ b/java/src/com/android/inputmethod/latin/Dictionary.java @@ -31,6 +31,7 @@ public abstract class Dictionary { public static final int UNIGRAM = 0; public static final int BIGRAM = 1; + public static final int NOT_A_PROBABILITY = -1; /** * Interface to be implemented by classes requesting words to be fetched from the dictionary. * @see #getWords(WordComposer, CharSequence, WordCallback, ProximityInfo) @@ -84,6 +85,10 @@ public abstract class Dictionary { */ abstract public boolean isValidWord(CharSequence word); + public int getFrequency(CharSequence word) { + return NOT_A_PROBABILITY; + } + /** * Compares the contents of the character array with the typed word and returns true if they * are the same. |