diff --git a/java/src/com/android/inputmethod/latin/SuggestedWords.java b/java/src/com/android/inputmethod/latin/SuggestedWords.java index df8db0cd2..913b63a61 100644 --- a/java/src/com/android/inputmethod/latin/SuggestedWords.java +++ b/java/src/com/android/inputmethod/latin/SuggestedWords.java @@ -111,6 +111,14 @@ public class SuggestedWords { return size() - /* typed word */ 1; } + /** + * Get {@link SuggestedWordInfo} object for the typed word. + * @return The {@link SuggestedWordInfo} object for the typed word. + */ + public SuggestedWordInfo getTypedWordInfo() { + return mTypedWordInfo; + } + /** * Get suggested word at index. * @param index The index of the suggested word. @@ -347,6 +355,14 @@ public class SuggestedWords { return mDebugString; } + public String getWord() { + return mWord; + } + + public Dictionary getSourceDictionary() { + return mSourceDict; + } + public int codePointAt(int i) { return mWord.codePointAt(i); }