aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/ExpandableDictionary.java
diff options
context:
space:
mode:
authorKen Wakasa <kwakasa@google.com>2012-11-16 19:28:56 +0900
committerKen Wakasa <kwakasa@google.com>2012-11-16 19:28:56 +0900
commitfe9ec6bc7d58464f3117c3fe9372c2994861998b (patch)
tree244e40114265314d90ff463445826a793a050ff9 /java/src/com/android/inputmethod/latin/ExpandableDictionary.java
parentf25cc4405e329447425e52c3c5514a8802097fb8 (diff)
downloadlatinime-fe9ec6bc7d58464f3117c3fe9372c2994861998b.tar.gz
latinime-fe9ec6bc7d58464f3117c3fe9372c2994861998b.tar.xz
latinime-fe9ec6bc7d58464f3117c3fe9372c2994861998b.zip
Remove unused variables
Change-Id: Ia5079368a1bc86ccdf0052445dc6945041c0abca
Diffstat (limited to 'java/src/com/android/inputmethod/latin/ExpandableDictionary.java')
-rw-r--r--java/src/com/android/inputmethod/latin/ExpandableDictionary.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/ExpandableDictionary.java b/java/src/com/android/inputmethod/latin/ExpandableDictionary.java
index 16cc1b35f..fa0d5497b 100644
--- a/java/src/com/android/inputmethod/latin/ExpandableDictionary.java
+++ b/java/src/com/android/inputmethod/latin/ExpandableDictionary.java
@@ -31,6 +31,10 @@ import java.util.LinkedList;
* be searched for suggestions and valid words.
*/
public class ExpandableDictionary extends Dictionary {
+ /**
+ * The weight to give to a word if it's length is the same as the number of typed characters.
+ */
+ private static final int FULL_WORD_SCORE_MULTIPLIER = 2;
// Bigram frequency is a fixed point number with 1 meaning 1.2 and 255 meaning 1.8.
protected static final int BIGRAM_MAX_FREQUENCY = 255;