aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2011-03-15 15:56:29 -0700
committerJean Chalard <jchalard@google.com>2011-03-15 21:12:38 -0700
commitd631651b1291aef52bdd6ea7caaf9b95c9704506 (patch)
tree8cbc36d3e29153c4d5a3f8991813bc985985f067 /java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java
parentc0471c43fb056adc32a9fd9f8eaff449e1822b29 (diff)
downloadlatinime-d631651b1291aef52bdd6ea7caaf9b95c9704506.tar.gz
latinime-d631651b1291aef52bdd6ea7caaf9b95c9704506.tar.xz
latinime-d631651b1291aef52bdd6ea7caaf9b95c9704506.zip
Avoid the removal of high-ranking exactly typed candidates.
It used to be the case that the scoring system turns up the same word that was entered with a different capitalization, but with a lower score than some other, more frequent word. To cope with this, there was code that would order such candidates in the first slot no matter what. This processing is now useless because fully matching words now have a huge boost that ensures they will get to the top of the list, before any non-fully matching word (which means, differing only by capitalization or accents). The bug that did happen with this was, if a fully-matching word got matched by several processing passes, and the (chronologically) later score affected to this word was weaker, it would result in the duplicate removal pass removing the stronger score. This in turn would mess with autocorrect. In an effort to keep the risk at a minimum for MR1, this change does not actually remove the useless code, but adds a check in the odd case to avoid the bad situation. Another change will remove the code for ICS release. bug: 4100269 Change-Id: I18c0575332981ffec0e257e26a360995838d521e
Diffstat (limited to 'java/src/com/android/inputmethod/latin/BinaryDictionaryGetter.java')
0 files changed, 0 insertions, 0 deletions