aboutsummaryrefslogtreecommitdiffstats
path: root/native/src/unigram_dictionary.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Rename variables with obscure names.Jean Chalard2011-02-221-33/+36
| | | | | | | | | 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
* Force autocorrection of matching words with different accents.Jean Chalard2011-02-221-11/+37
| | | | | | | | | | | 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
* Remove next letters frequency handlingTadashi G. Takaoka2011-02-171-6/+6
| | | | | Bug: 3428942 Change-Id: Id62f467ce4e50c60a56d59bf96770e799a4659e2
* Promote full matches with differing accents.Jean Chalard2011-01-271-18/+25
| | | | | | | | | | | 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
* Handle the last char correctly in excessive char correction algortihm.satok2011-01-271-3/+6
| | | | | | bug: 3278422 Change-Id: I651d3cb0130ab9834ed9d7a97f41360c6eaa9de1
* Fix auto-correction threshold and promote full matched wordssatok2011-01-271-6/+12
| | | | | | | | | | 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
* Load main dic in nativeKen Wakasa2011-01-071-1/+0
| | | | | | | Follow up to Id57dce51 bug: 3219819 Change-Id: I00e11ef21d0252ffa88c12dffb9c55b0f2e19a66
* Supress overflow at mulitplying demotion ratesatok2011-01-051-7/+14
| | | | Change-Id: I2003c5f88a5062b11e2f21522095bb94b1eb4efd
* Add profiler for native dictionary codesatok2011-01-051-3/+18
| | | | Change-Id: I2569756c9ef4fa677ae52f2ccfcb90d2115d129f
* Suggest words with excessive chars out of proximity charssatok2010-12-131-40/+49
| | | | | | Bug: 3273807 Change-Id: Ib8f48e562bcf4c2aac0ad5cb46809fd5f539a322
* Suggest words with transposed charssatok2010-12-101-36/+84
| | | | | | Bug: 3193883 Change-Id: I884b669258bfc522bc04e14f22a7646164a4cac5
* Limit the suggestions with an excessive character by filtering proximity ↵satok2010-12-101-3/+28
| | | | | | | characters Change-Id: Iad26dad545f1a431aa0fa53f99198b27defd03a3 ug: 3269482
* Fix a bug that We can't suggest words with missing space if one of the words ↵satok2010-12-091-50/+88
| | | | | | | starts with a capitalized character. Bug: 3268825 Change-Id: I0634a243ad1e45dd096b30824b463c366a2e7f0f
* Suggest words with missing spacesatok2010-12-091-62/+128
| | | | | | Bug: 3193883 Change-Id: I8d25f3e1d4db10be733d85edfa4f55a094feef80
* Suggest excessive characterssatok2010-12-081-20/+43
| | | | | | bug: 3193883 Change-Id: Iea7a0fce7ce62d8779a7c7e4613d50db30d82b07
* Make no-recursive getWordRecsatok2010-12-071-7/+55
| | | | Change-Id: Id90f3ca86ef490834cefa92f0d6958b1289fc633
* Fix a crash when MAX_WORD_LENGTH is too short.satok2010-12-061-2/+9
| | | | Change-Id: Idcb5aa2685321b8d0ac7d846caecbd1c79e4dd77
* Breakdown getWordRecsatok2010-12-061-61/+84
| | | | Change-Id: I4fef02c227fb858334dbe2eabf2762d5b6e1d919
* Trim the flow of getWordRecsatok2010-12-061-30/+37
| | | | Change-Id: Ic0cfa64ee1e55682ca73681c585db6a5cb510900
* Breakdown getWordRecsatok2010-12-031-63/+66
| | | | Change-Id: I8556efb1dd053eff9a9681971cbe1014abf0333f
* Breakdown getWordRec and add commentssatok2010-12-031-33/+55
| | | | Change-Id: I88bad8a4a8177e3540b995b664c47b86d6904027
* Detach bigram functionarities from unigram_dictionarysatok2010-12-021-252/+10
| | | | Change-Id: Ie35164a5f293e5370885a1ba13d6ed7caf6000ec
* Refactor: Move utility functions and no suggestion functions from ↵satok2010-12-021-154/+31
| | | | | | unigram_dictionary.cpp to dictionary.cpp Change-Id: I6f695e4f5852547d2c00de5ee54a650fef9accbe
* Fix parameters of native functions and refactor Dictionarysatok2010-12-021-0/+631
- created bigram/unigram dictionary classes Change-Id: I233a28ed8d611870db3f4cf8f25fc45b5d41529b