aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/ExpandableDictionary.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Merge "Demote skipped characters matched words with respect to length." into ↵Jean Chalard2011-03-041-9/+32
|\ | | | | | | honeycomb-mr1
| * Demote skipped characters matched words with respect to length.Jean Chalard2011-03-051-9/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | Words that matched user input with skipped characters used to be demoted in BinaryDictionary by a constant factor and not at all in those dictionaries implemented in java code. To represent the fact that the impact of a skipped character gets larger as the word is shorter, this change will implement a demotion that gets larger as the typed word is shorter. The demotion rate is (n - 2) / (n - 1) where n is the length of the typed word for n >= 2. It implements it for both BinaryDictionary and java dictionaries. Bug: 3340731 Change-Id: I3a18be80a9708981d56a950dc25fe08f018b5b89
* | Fix a NPE caused by a null typedWordKen Wakasa2011-03-051-1/+1
|/ | | | | bug: 3514797 Change-Id: Ie1056745ded1f848d1e4f70c5344d6969de509b0
* Remove next letters frequency handlingTadashi G. Takaoka2011-02-171-12/+4
| | | | | Bug: 3428942 Change-Id: Id62f467ce4e50c60a56d59bf96770e799a4659e2
* Fix StringIndexOutOfBoundsExceptionKen Wakasa2011-01-091-1/+2
| | | | | bug: 3325065 Change-Id: Ic3d2dca5b2aa1681d472c7f96b31737e15f4952d
* Remove Tutorial class and unused debug featureTadashi G. Takaoka2010-12-101-82/+95
| | | | | | | This change also cleanups compiler warnings. Bug: 2897373 Change-Id: If972cf45c1eb40436adbddbf71969e5409f4c9c5
* Cleanup unused Java importTadashi G. Takaoka2010-11-291-2/+2
| | | | | | This change also fixes wrong file mode. Change-Id: Ifcf4c9444ddcdc62d2e4b394891d6eee135c1e8f
* -UserBigramJae Yong Sung2010-08-101-28/+57
| | | | | | | -UnitTest for UserBigram -Changes for number of bigrams to load Change-Id: I2c6fbe6194d34112ccc52c7e199461d2350e8516
* - separate dict (uses xml)Jae Yong Sung2010-07-281-33/+160
| | | | | | | | | | - retrieve bigrams that only starts with character typed and neighbor keys - contacts bigram - performance measure bug: 2873133 Change-Id: If97c005b18c82f3fafef50009dd2dfd972b0ab8f
* Merge remote branch 'goog/master'satok2010-07-161-2/+4
|\ | | | | | | | | | | | | | | | | | | | | Conflicts: java/res/xml/prefs.xml java/src/com/android/inputmethod/latin/BinaryDictionary.java java/src/com/android/inputmethod/latin/Dictionary.java java/src/com/android/inputmethod/latin/ExpandableDictionary.java java/src/com/android/inputmethod/latin/LatinIME.java java/src/com/android/inputmethod/latin/Suggest.java tests/src/com/android/inputmethod/latin/tests/SuggestTests.java
| * added bigram predictionJae Yong Sung2010-07-131-2/+3
| | | | | | | | | | | | | | | | | | - after first character, only suggests bigram data (but doesn't autocomplete) - after second character, words from dictionary gets rearranged by using bigram - compatible with old dictionary - added preference option to disable bigram Change-Id: Ia8f4e8fa55e797e86d858fd499887cd396388411
* | Check suggested words whether they are from mainDic or notsatok2010-06-021-6/+5
|/ | | | | | | - Added counters for suggestions by dictionarys - Added a counter for cancelled suggestions Change-Id: Ia7d3a73855b1e82b60a010f18dba4e1c0fe1c2bb
* Load UserDictionary and AutoDictionary in a background thread.Amith Yamasani2010-03-101-0/+69
| | | | | | | | | | | This is to avoid ANRs during bootup, as some of the providers may not have been initialized yet. Refactored the ContactsDictionary and moved the async loading code to ExpandableDictionary to share with the other dicts. Bug: 2501133 Change-Id: I20393edb6fdf5df2f54ebac8dd04419a592177a2
* Don't let the native code target be included twice when unbundling.Amith Yamasani2010-03-091-0/+465
Move java code to a different directory so that the unbundled version doesn't try to compile the native code again. Change-Id: I05cf9e643824ddc448821f69805ccb0240c5b986