diff options
author | 2011-03-16 19:19:56 -0700 | |
---|---|---|
committer | 2011-03-16 19:19:56 -0700 | |
commit | 89ff5adc80260c8496f9cd09136caad4e6431f6c (patch) | |
tree | 61cb818fb4983a759b5be5b1a97d115ca6df2bf2 /java/src/com/android/inputmethod/latin/Dictionary.java | |
parent | 6556b19fe1532e8b48dcb859ba6b356c02237629 (diff) | |
parent | e7a2512aa3666e1b891dc7dfc5a0cb28fd66bea9 (diff) | |
download | latinime-89ff5adc80260c8496f9cd09136caad4e6431f6c.tar.gz latinime-89ff5adc80260c8496f9cd09136caad4e6431f6c.tar.xz latinime-89ff5adc80260c8496f9cd09136caad4e6431f6c.zip |
Merge "Add Utils.equalsIgnoreCase methods"
Diffstat (limited to 'java/src/com/android/inputmethod/latin/Dictionary.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/Dictionary.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/java/src/com/android/inputmethod/latin/Dictionary.java b/java/src/com/android/inputmethod/latin/Dictionary.java index 56f0cc503..ac43d6477 100644 --- a/java/src/com/android/inputmethod/latin/Dictionary.java +++ b/java/src/com/android/inputmethod/latin/Dictionary.java @@ -29,7 +29,7 @@ public abstract class Dictionary { /** * The weight to give to a word if it's length is the same as the number of typed characters. */ - protected static final int FULL_WORD_FREQ_MULTIPLIER = 2; + protected static final int FULL_WORD_SCORE_MULTIPLIER = 2; public static enum DataType { UNIGRAM, BIGRAM @@ -42,17 +42,17 @@ public abstract class Dictionary { public interface WordCallback { /** * Adds a word to a list of suggestions. The word is expected to be ordered based on - * the provided frequency. + * the provided score. * @param word the character array containing the word * @param wordOffset starting offset of the word in the character array * @param wordLength length of valid characters in the character array - * @param frequency the frequency of occurrence. This is normalized between 1 and 255, but + * @param score the score of occurrence. This is normalized between 1 and 255, but * can exceed those limits * @param dicTypeId of the dictionary where word was from * @param dataType tells type of this data * @return true if the word was added, false if no more words are required */ - boolean addWord(char[] word, int wordOffset, int wordLength, int frequency, int dicTypeId, + boolean addWord(char[] word, int wordOffset, int wordLength, int score, int dicTypeId, DataType dataType); } |