aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/ExpandableDictionary.java (follow)
Commit message (Expand)AuthorAgeFilesLines
* Merge "Fix a silly bug." into jb-mr1-devJean Chalard2012-08-211-1/+1
|\
| * Fix a silly bug.•••This would prevent user history to work at all. Bug: 7023638 Change-Id: I5d8867a07fb8859325d274e956ae667c094d0ac1 Jean Chalard2012-08-221-1/+1
* | Add CollectionUtils class to create generic collection easily•••Change-Id: I6b4de9187e122298e5e9cd8ddc9070d062df6a89 Tadashi G. Takaoka2012-08-221-4/+4
* | Rename and consolidate some constants•••Change-Id: I7863936cca18b28bf0117afcbcf544a5fd7f185d Tadashi G. Takaoka2012-08-211-4/+3
|/
* Fix an OOB exception•••Not sure exactly how this can happen, but at least this should prevent us from crashing. Bug: 6920884 Change-Id: I451864756b48c5cb5e98b06edee917d88766d77f Jean Chalard2012-08-031-2/+5
* Cleanup old methods (A90)•••Change-Id: I5435cef8ac6be523934ffa394952cb120c8e89d6 Jean Chalard2012-07-101-24/+1
* Implement the common Dictionary interface (A89)•••This will de-duplicate a lot of existing code. Change-Id: Idaffb2fde23b9741f057bcb2ecb3dde9d12ea5c5 Jean Chalard2012-07-101-0/+22
* Reduce method visibility (A88)•••Change-Id: I29d6afbcba0998558c9b19287a460d9f0e410994 Jean Chalard2012-07-101-2/+2
* Factorize code (A87)•••Why was this copy-pasted :( Change-Id: I6a537c56425ad039d7301a5fe1e0485784f07914 Jean Chalard2012-07-101-13/+7
* Move stuff around for readability (A86)•••Change-Id: I5f4a18e43f3012acf96978d625325bf7c69c9c80 Jean Chalard2012-07-101-21/+21
* Add input pointers•••Change-Id: I95300bf0a847fb86d026e846ff4ad723bb45284f Satoshi Kataoka2012-06-291-2/+3
* Remember the source dictionary for each suggestion.•••Change-Id: I3c63372bd5572a479a67eaecfe8c8ea1cabc70d9 Jean Chalard2012-06-271-3/+3
* Cleanup the dictionary type.•••Stop storing an int in each of the different class types, and just store a string in the top class. Change-Id: I2af1832743e6fe78e5c1364f6d9cc21252bf5831 Jean Chalard2012-06-271-3/+2
* Remove the callback argument to getBigrams() (A16)•••Bug: 6252660 Bug: 6166228 Bug: 2704000 Bug: 6225530 Change-Id: I7457ac04f8cd4019fb86c986725aae3de1b1a65e Jean Chalard2012-06-261-1/+1
* Remove the callback argument to getWords() (A15)•••Bug: 6252660 Bug: 6166228 Bug: 2704000 Bug: 6225530 Change-Id: I919bf70a1213ab5d7c7a9e5715bd72a6e257148b Jean Chalard2012-06-261-2/+1
* Do away with Utils#addAllSuggestions (A14)•••It's not used any more. Change-Id: Id9da40fdbf7078f3ac647d1368237d6601f5a2ba Jean Chalard2012-06-261-2/+0
* Change the return type of getWords and getBigrams (A8)•••This only returns stuff, but it doesn't change yet how the data is really passed. It merely adds a way of getting the same data. Later, the old way will be removed. Change-Id: If3a064de362175fc5a6781b7a97b65d8730aaf3c Jean Chalard2012-06-261-6/+10
* Remove another dependency to WordCallback (A4)•••Bug: 6252660 Bug: 6166228 Bug: 2704000 Bug: 6225530 Change-Id: I5b277124dc9244e78c4a1f4d542a55071eb479bd Jean Chalard2012-06-261-8/+11
* Change JNI for Gesture•••Change-Id: I774a0052038d16677f60f7efa11fd266cb5f3088 Satoshi Kataoka2012-06-251-2/+3
* Tentatively remove a dependency on WordCallback (A3)•••Bug: 6252660 Bug: 6166228 Bug: 2704000 Bug: 6225530 Change-Id: Id5a59eaec2aeefa0ba4524420a8e035d383f6545 Jean Chalard2012-06-211-23/+30
* Remove a slew of Eclipse warnings.•••Change-Id: I03236386aea13fbd4fb8eaeee18e0008aa136502 Jean Chalard2012-06-081-1/+3
* Set level 1 as the initial value of the valid words•••Bug: 4192129 Change-Id: I867e78ce79c78977d08e8b66881a25b6fe5bf41f Satoshi Kataoka2012-05-291-6/+5
* Forget user history•••Bug: 4192129 Change-Id: Ic98398e5383093a1c24373849eadc48fc4d3626f satok2012-05-281-36/+100
* Clean up some compiler warnings•••Change-Id: I604da15e65fc3cf807ec4033df4e4cd5ef0196fc Tadashi G. Takaoka2012-05-251-1/+2
* Cancel adding user history bigram when autocorrection is cancelled•••Bug: 6465474 Change-Id: Ifbfe0ddc2ce5fab070939ede3db7bf03a8535a45 satok2012-05-241-158/+180
* Read and use user dictionary shortcuts.•••Bug: 4646172 Change-Id: I51002c73d5bad1a698110c5cda02253348be8eed Jean Chalard2012-05-151-20/+68
* Pass the previous word to getSuggestions•••This is a preparative change to bug#6313806 Change-Id: I1be9ec49b21005c1f45ce459fa93712bc74ef3f0 Jean Chalard2012-04-171-4/+5
* Come back the proximity correction to ExpandableDictionary•••Bug: 6242539 Change-Id: Ic0467d54c9d85d0653812d4e127328878ef15b94 satok2012-04-021-3/+10
* Fix AIOOBE•••Bug: 6236912 Change-Id: Ie09e5ef1c23eb48621ac3f2f2dc28dc2e46ca288 satok2012-03-281-12/+13
* ongoing cleanup 2•••Change-Id: I66b61cbe491cf8375144e834390beae3209a777d satok2012-03-271-2/+6
* Convert an internal enum into an int of same underlying value.•••Goes together with Id4f4e066 Bug: 5922118 Change-Id: I1e39dd01c67e9284d9d7fe008d868847e69986d7 Jean Chalard2012-01-261-3/+3
* Change visibility to avoid synthetic accessor method•••Change-Id: Ie93c7437fb9a3fe63adaa48c2d4a723f96c0a0e1 Tadashi G. Takaoka2011-12-151-0/+2
* Cleanup unused import•••This change also gets rid of several compiler warnings. Change-Id: I23962edaadad18a6e0395d528af17b909dcf5dad Tadashi G. Takaoka2011-10-041-17/+14
* Fix a bug with synchronicity of spell checking/user dict•••This fixes a race condition that would end up with the spell checker not finding some words in the user dictionary when it just booted. Bug: 5194627 Change-Id: I1ba911cc53e6ae3b111d54a6f91d1d5feef3f5de Jean Chalard2011-08-291-3/+11
* Have the spell checker use the User dictionary.•••Bug: 5175868 Change-Id: I165eee4c865caa5ee1daf3e0b1acde8788b996ef Jean Chalard2011-08-191-4/+3
* Create a way to pass the proximity info to the dictionary•••This is a preparative change for inserting the spell checker. Change-Id: Ie441879cac4f67078ec27a95f1fcbbf3ef373df7 Jean Chalard2011-08-041-1/+3
* Squash case for bigram insertion/lookup.•••Bug: 4464446 Change-Id: If7b6d73fb408d53f941c82ed4f47221e85c845d8 Jean Chalard2011-05-231-9/+24
* Straighten out magic space vs real spaces behavior.•••Picking a suggestion inserts a space after the word. This change makes this space a magic space. Incidentally, do some minor cleanup: add CODE_DASH, CODE_SINGLE_QUOTE and CODE_DOUBLE_QUOTE to Keyboard and use them throughout the code, and remove a useless import directive in some unrelated file. Bug: 4319740 Change-Id: I245f396c34dd0af820bca91edc4ec363238a4ae4 Jean Chalard2011-05-021-3/+4
* Reinforce user-history based bigram use.•••- Have user-history based bigrams used as soon as they are entered, not after 6 times. - Limit bigram frequency to 255 (this limits the multiplier to 1.8, and has no effect on main dict bigrams which already have this limit) - Some TODO resolving bug: 4192129 Change-Id: I4777f1a58c43dd55381c4b01252d722ab3a70547 Jean Chalard2011-04-061-13/+16
* Add Utils.equalsIgnoreCase methods•••This change also corrects usage of "frequency", "priority" and "score" * Frequency is the relative probability in dictionary. * Score is the relative probability in suggestions. * Priority is kind a sorted score. Change-Id: Iafb135a4ecdb401cc505014a07c74dfcac44d699 Tadashi G. Takaoka2011-03-161-1/+1
* Merge "Demote skipped characters matched words with respect to length." into ...Jean Chalard2011-03-041-9/+32
|\
| * Demote skipped characters matched words with respect to length.•••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 Jean Chalard2011-03-051-9/+32
* | Fix a NPE caused by a null typedWord•••bug: 3514797 Change-Id: Ie1056745ded1f848d1e4f70c5344d6969de509b0 Ken Wakasa2011-03-051-1/+1
|/
* Remove next letters frequency handling•••Bug: 3428942 Change-Id: Id62f467ce4e50c60a56d59bf96770e799a4659e2 Tadashi G. Takaoka2011-02-171-12/+4
* Fix StringIndexOutOfBoundsException•••bug: 3325065 Change-Id: Ic3d2dca5b2aa1681d472c7f96b31737e15f4952d Ken Wakasa2011-01-091-1/+2
* Remove Tutorial class and unused debug feature•••This change also cleanups compiler warnings. Bug: 2897373 Change-Id: If972cf45c1eb40436adbddbf71969e5409f4c9c5 Tadashi G. Takaoka2010-12-101-82/+95
* Cleanup unused Java import•••This change also fixes wrong file mode. Change-Id: Ifcf4c9444ddcdc62d2e4b394891d6eee135c1e8f Tadashi G. Takaoka2010-11-291-2/+2
* -UserBigram•••-UnitTest for UserBigram -Changes for number of bigrams to load Change-Id: I2c6fbe6194d34112ccc52c7e199461d2350e8516 Jae Yong Sung2010-08-101-28/+57
* - separate dict (uses xml)•••- retrieve bigrams that only starts with character typed and neighbor keys - contacts bigram - performance measure bug: 2873133 Change-Id: If97c005b18c82f3fafef50009dd2dfd972b0ab8f Jae Yong Sung2010-07-281-33/+160
* Merge remote branch 'goog/master'•••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 satok2010-07-161-2/+4
|\