commit | d9d9dae50713a2883ea4db482a09a4eaf064aedb | [log] [tgz] |
---|---|---|
author | satok <satok@google.com> | Wed Oct 05 20:04:27 2011 +0900 |
committer | satok <satok@google.com> | Wed Oct 05 20:06:18 2011 +0900 |
tree | 5e58e4ac6266e9dccf5237ffaf989fc9c0c65c67 | |
parent | 4fce7f7a17c5d50acf2d7e502775277d962fe37e [diff] |
Fix comments in the sample spell checker service Change-Id: I553a9820756f1a6a1164c7a4a66820556cb3fdcc
diff --git a/samples/SampleSpellCheckerService/src/com/example/android/samplespellcheckerservice/SampleSpellCheckerService.java b/samples/SampleSpellCheckerService/src/com/example/android/samplespellcheckerservice/SampleSpellCheckerService.java index 91a76d8..dc85587 100644 --- a/samples/SampleSpellCheckerService/src/com/example/android/samplespellcheckerservice/SampleSpellCheckerService.java +++ b/samples/SampleSpellCheckerService/src/com/example/android/samplespellcheckerservice/SampleSpellCheckerService.java
@@ -43,8 +43,9 @@ } final String input = textInfo.getText(); final int length = input.length(); - // length <= 3 for too short words - // length > 20 for too long words that is possibly CJK words + // Just a fake logic: + // length <= 3 for short words that we assume are in the fake dictionary + // length > 20 for too long words that we assume can't be recognized (such as CJK words) final int flags = length <= 3 ? SuggestionsInfo.RESULT_ATTR_IN_THE_DICTIONARY : length <= 20 ? SuggestionsInfo.RESULT_ATTR_LOOKS_LIKE_TYPO : 0; return new SuggestionsInfo(flags,