aboutsummaryrefslogtreecommitdiffstats
path: root/native/src/unigram_dictionary.cpp (follow)
Commit message (Expand)AuthorAgeFilesLines
* Fix a bug that a word with only one missing word is not promoted•••Bug: 4027223 Change-Id: Icf7c5b917c18b565dca95b98b96c1c8e2963f540 satok2011-03-071-1/+1
* A bug fix for the mistyped space algorithm•••Bug: 3311719 -- also fixed compiler warnings Change-Id: I6941c0d02f10d67af88bc943748dde8d8783fabb satok2011-03-041-5/+3
* Merge "Demote skipped characters matched words with respect to length." into ...Jean Chalard2011-03-041-3/+10
|\
| * 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-3/+10
* | Add the suggestion algorithm of words with space proximity•••Bug: 3311719 Change-Id: Ide12a4a6280103c092fa0f563dd5b9e3f7f5c89b satok2011-03-041-18/+46
* | Fix a bug with umlaut processing.•••Issue: 3275926 Change-Id: Ibcb00aaea3ff05ad59ad4e8e54dd3caab5ab9bca Jean Chalard2011-03-041-26/+34
|/
* Use translation of fallback umlauts digraphs for German.•••For German : handle "ae", "oe" and "ue" to be alternate forms for umlaut-bearing versions of "a", "o" and "u". Issue: 3275926 Change-Id: I056c707cdacc464ceab63be56c016c7f8439196c Jean Chalard2011-03-031-29/+125
* Add proximity info to native•••Bug: 3311719 Change-Id: Ie596304070e321ad23fb67a13bf05e2b6af1b54b satok2011-02-231-5/+11
* Rename variables with obscure names.•••The `snr' variable has a very obscure name. Rename it to `matchWeight'. Also, the `toLowerCase' function is error-prone, since it actually returns a lower case version of the BASE char, that is without diacritics. Hence, rename it to `toBaseLowerCase' and update variables with similar names. Change-Id: Ibdbe73018a33ee864db59a51d664c3b104d5fb3f Jean Chalard2011-02-221-33/+36
* Force autocorrection of matching words with different accents.•••When entering a word without accents the user expects the system to add accents automatically if there is no other matching word. This patch ensures the accented version is promoted accordingly and autocorrection really takes place. Issue: 3400015 Change-Id: I8cd3db5bf131ec6844b26abecc1ecbd1d6269df4 Jean Chalard2011-02-221-11/+37
* Remove next letters frequency handling•••Bug: 3428942 Change-Id: Id62f467ce4e50c60a56d59bf96770e799a4659e2 Tadashi G. Takaoka2011-02-171-6/+6
* Promote full matches with differing accents.•••Stop considering accented characters as different from their base character for proximity scoring. Also give a huge boost (basically overriding frequency) to a word fully matched with only differing accents. Bug: 2550587 Change-Id: I2da7a71229fb3868d9e4a53703ccf8caeb6fcf10 Jean Chalard2011-01-271-18/+25
* Handle the last char correctly in excessive char correction algortihm.•••bug: 3278422 Change-Id: I651d3cb0130ab9834ed9d7a97f41360c6eaa9de1 satok2011-01-271-3/+6
* Fix auto-correction threshold and promote full matched words•••Bug: 3374359 Bug: 3278422 "zbe" will be auto corrected to "be" by fixing s-line "teh" will be auto corrected to "the" by promotion of full matched words Change-Id: I314c632820e4e0b1501edeca60ada205d291451f satok2011-01-271-6/+12
* Load main dic in native•••Follow up to Id57dce51 bug: 3219819 Change-Id: I00e11ef21d0252ffa88c12dffb9c55b0f2e19a66 Ken Wakasa2011-01-071-1/+0
* Supress overflow at mulitplying demotion rate•••Change-Id: I2003c5f88a5062b11e2f21522095bb94b1eb4efd satok2011-01-051-7/+14
* Add profiler for native dictionary code•••Change-Id: I2569756c9ef4fa677ae52f2ccfcb90d2115d129f satok2011-01-051-3/+18
* Suggest words with excessive chars out of proximity chars•••Bug: 3273807 Change-Id: Ib8f48e562bcf4c2aac0ad5cb46809fd5f539a322 satok2010-12-131-40/+49
* Suggest words with transposed chars•••Bug: 3193883 Change-Id: I884b669258bfc522bc04e14f22a7646164a4cac5 satok2010-12-101-36/+84
* Limit the suggestions with an excessive character by filtering proximity char...•••Change-Id: Iad26dad545f1a431aa0fa53f99198b27defd03a3 ug: 3269482 satok2010-12-101-3/+28
* Fix a bug that We can't suggest words with missing space if one of the words ...•••Bug: 3268825 Change-Id: I0634a243ad1e45dd096b30824b463c366a2e7f0f satok2010-12-091-50/+88
* Suggest words with missing space•••Bug: 3193883 Change-Id: I8d25f3e1d4db10be733d85edfa4f55a094feef80 satok2010-12-091-62/+128
* Suggest excessive characters•••bug: 3193883 Change-Id: Iea7a0fce7ce62d8779a7c7e4613d50db30d82b07 satok2010-12-081-20/+43
* Make no-recursive getWordRec•••Change-Id: Id90f3ca86ef490834cefa92f0d6958b1289fc633 satok2010-12-071-7/+55
* Fix a crash when MAX_WORD_LENGTH is too short.•••Change-Id: Idcb5aa2685321b8d0ac7d846caecbd1c79e4dd77 satok2010-12-061-2/+9
* Breakdown getWordRec•••Change-Id: I4fef02c227fb858334dbe2eabf2762d5b6e1d919 satok2010-12-061-61/+84
* Trim the flow of getWordRec•••Change-Id: Ic0cfa64ee1e55682ca73681c585db6a5cb510900 satok2010-12-061-30/+37
* Breakdown getWordRec•••Change-Id: I8556efb1dd053eff9a9681971cbe1014abf0333f satok2010-12-031-63/+66
* Breakdown getWordRec and add comments•••Change-Id: I88bad8a4a8177e3540b995b664c47b86d6904027 satok2010-12-031-33/+55
* Detach bigram functionarities from unigram_dictionary•••Change-Id: Ie35164a5f293e5370885a1ba13d6ed7caf6000ec satok2010-12-021-252/+10
* Refactor: Move utility functions and no suggestion functions from unigram_dic...•••Change-Id: I6f695e4f5852547d2c00de5ee54a650fef9accbe satok2010-12-021-154/+31
* Fix parameters of native functions and refactor Dictionary•••- created bigram/unigram dictionary classes Change-Id: I233a28ed8d611870db3f4cf8f25fc45b5d41529b satok2010-12-021-0/+631