diff --git a/java/src/com/android/inputmethod/latin/SuggestedWords.java b/java/src/com/android/inputmethod/latin/SuggestedWords.java
index 9aa3ebcda1161052389ba92a66c2bb2159cf0737..78142b6b335fb2256905963a7bd2f5dc0b764a52 100644
--- a/java/src/com/android/inputmethod/latin/SuggestedWords.java
+++ b/java/src/com/android/inputmethod/latin/SuggestedWords.java
@@ -122,7 +122,8 @@ public class SuggestedWords {
             return addWord(word, info);
         }
 
-        private Builder addWord(CharSequence word, SuggestedWordInfo suggestedWordInfo) {
+        /* package for tests */
+        Builder addWord(CharSequence word, SuggestedWordInfo suggestedWordInfo) {
             if (!TextUtils.isEmpty(word)) {
                 mWords.add(word);
                 // It's okay if suggestedWordInfo is null since it's checked where it's used.