aboutsummaryrefslogtreecommitdiffstats
path: root/native/src (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Cleanup.Jean Chalard2011-06-302-14/+13
| | | | | | Function renaming, moving around for future patch readability Change-Id: Id33b961cf2e899b5a3c9189951d2199aba801666
* Internal cleanup.Jean Chalard2011-06-302-20/+15
| | | | | | Function renaming, useless function supressing, fix comments Change-Id: I148acbaf367cd556a85b89016676b46cc971af81
* Internal cleanup.Jean Chalard2011-06-301-4/+0
| | | | | | Removed unused function prototypes. Change-Id: Ia56ea8e285deed17ce8377df855b045b7850d58d
* New dict format, step 6Jean Chalard2011-06-211-0/+130
| | | | | | | Copy the modified functions to be able to see the diff Bug: 4392433 Change-Id: Ic9b83b4b4b7b89cc922eed1825507d7d516aff24
* New dict format, step 5Jean Chalard2011-06-211-164/+172
| | | | | | | | | Move functions that will be modified and enclose those that will be replaced into #ifdefs. This change does not modify any code, only move some code around. Bug: 4392433 Change-Id: Ibefbda1eb8bdc8a0c72de47ad9c67a08d0aca960
* Clean up in LatinIME native codeKen Wakasa2011-06-187-11/+16
| | | | Change-Id: I0062200a0181a491690115ac0fab8d11358e2f14
* Merge "New dict format, step 4"Jean Chalard2011-06-172-38/+49
|\
| * New dict format, step 4Jean Chalard2011-06-172-38/+49
| | | | | | | | | | | | | | | | | | Consolidate terminal cases, streamline the word adding process and create the entrances for adding alternate spellings with an empty implementation. Bug: 4392433 Change-Id: I781c93ec49945d71c7c20624c86596aa49add4c8
* | New dict format, step 3 - followupJean Chalard2011-06-171-2/+1
|/ | | | | | | Make the passing of an argument clearer Bug: 4392433 Change-Id: Id82662ff4dc25282f70a08bee77378fee2b4b590
* Fix a bug where bigram search would never returnJean Chalard2011-06-175-6/+18
| | | | | Bug: 4690487 Change-Id: Ie8f3f651508cc48bbb043a0b308f7e0d1524371c
* New dict format, step 3Jean Chalard2011-06-162-12/+20
| | | | | | | Some refactoring and add of a parameter that will be necessary. Bug: 4392433 Change-Id: I17f001a7efd4f69f4c35f94ee1ca8e97391b81d5
* New dict format, step 2Jean Chalard2011-06-165-46/+49
| | | | | | | Move some methods around and make static some methods Bug: 4392433 Change-Id: I2bbe98aec118a416d21d1e293638e1d324505b9b
* New dict format, step 1Jean Chalard2011-06-162-16/+23
| | | | | | | | This renames some variables and removes dependancies to values that will disappear Bug: 4392433 Change-Id: I79a44462d6bf25248cc2de0d63d7918fc6925d68
* Allow reading a binary dictionary even without proximity info.Jean Chalard2011-06-022-2/+2
| | | | | | | | This prepares the way for spell checking, which is to be done without context so without proximity info. Bug: 4176026 Change-Id: I1b4bfaefe2611e1b484acdf3c33598cb80f81ff4
* Tweak the demotion rate for the mistyped space correctionsatok2011-05-241-1/+1
| | | | | | Bug: 4402942 Change-Id: I7f5412b9fd2f1506f529cff0c3399d748c6ece92
* Tweak the demotion rate of mistyped space correctionsatok2011-05-231-1/+1
| | | | | | Bug: 4402942 Change-Id: I6e0421dfa99e261c72a901c9699fec864ab4b3c5
* Fix a bug on the calculation of the freq on the mistyped space error correctionsatok2011-05-182-8/+17
| | | | | | Bug: 4402942 Change-Id: I0b611e3d0e8c25ca528ef7408c3949200e5cad85
* Enable fast powersatok2011-04-271-1/+1
| | | | Change-Id: I00a91381f63cde62d9e7cf7e17f75869294cf2df
* Handle overflow properly in multiplyRatesatok2011-04-261-17/+44
| | | | | Bug: 3401513 Change-Id: I8dd2523caa58bb51c378a01e160a58f9106ce9b8
* Fix a bug that 2 length words were demoted.satok2011-04-201-2/+5
| | | | Change-Id: I4a3558d0f1f1b0a9d6a36c3f75db3089b0566d7f
* Merge "Promote a word with a missing space because the formula was changed ↵satok2011-04-191-1/+1
|\ | | | | | | by Ifa4338c5f4"
| * Promote a word with a missing space because the formula was changed by ↵satok2011-04-191-1/+1
| | | | | | | | | | | | Ifa4338c5f4 Change-Id: Id4bc965aef387800facb64164d8c36a3bdd2fa07
* | Demote a word with mistyped space and missing space according to the length ↵satok2011-04-191-5/+50
|/ | | | | | of each word Change-Id: Ifa4338c5f43b37e6bcd0700767ef2178189de3af
* Promote the correction of words with a missing space charactersatok2011-04-182-2/+8
| | | | Change-Id: I37ba618b54f7115163a3e9c6c555485e7024dc92
* Promote a word with a proximity charactersatok2011-04-142-5/+5
| | | | | | Bug: 4293295 Change-Id: Ib0ec8aff087c71c4fbe983f3f5bc78e9c7868fd8
* Promote a word with only one proximity character.satok2011-04-132-1/+13
| | | | | | Bug: 4271049 Change-Id: I755986f582f43417fda6b117207530c519233baf
* Change the formula of the missing character.satok2011-04-132-4/+8
| | | | | | | | | | | | - Bug: 4271049 - Due to the result of the recent user study, a word with a missing character needs to be promoted a bit. so I changed the formula from: - freq * 70 * (n - 2) / (n - 1) to: - freq * 90 * (10n - 12) / (10n - 2) Change-Id: Ibff72cbdb0f2d7b91460a06a0fd39a9f5749aa46
* Add -Werror flag to catch more warnings and errorsKen Wakasa2011-03-194-27/+68
| | | | Change-Id: I9c39ba24578931944aae8182918ed48a2e82eb39
* Merge "Tweak the demotion rate for a word with missing letter" into ↵satok2011-03-071-1/+1
|\ | | | | | | honeycomb-mr1
| * Tweak the demotion rate for a word with missing lettersatok2011-03-071-1/+1
| | | | | | | | | | | | Bug: 4027223 Change-Id: Ie9a5552d2f41d60f433573fde52efc097f5143bf
* | Fix a bug that a word with only one missing word is not promotedsatok2011-03-071-1/+1
|/ | | | | | Bug: 4027223 Change-Id: Icf7c5b917c18b565dca95b98b96c1c8e2963f540
* A bug fix for the mistyped space algorithmsatok2011-03-044-9/+7
| | | | | | | | Bug: 3311719 -- also fixed compiler warnings Change-Id: I6941c0d02f10d67af88bc943748dde8d8783fabb
* Merge "Demote skipped characters matched words with respect to length." into ↵Jean Chalard2011-03-043-7/+15
|\ | | | | | | honeycomb-mr1
| * Demote skipped characters matched words with respect to length.Jean Chalard2011-03-053-7/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Add the suggestion algorithm of words with space proximitysatok2011-03-045-29/+99
| | | | | | | | | | | | Bug: 3311719 Change-Id: Ide12a4a6280103c092fa0f563dd5b9e3f7f5c89b
* | Fix a bug with umlaut processing.Jean Chalard2011-03-043-27/+40
|/ | | | | Issue: 3275926 Change-Id: Ibcb00aaea3ff05ad59ad4e8e54dd3caab5ab9bca
* Use translation of fallback umlauts digraphs for German.Jean Chalard2011-03-034-36/+163
| | | | | | | | | 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
* Add proximity info to nativesatok2011-02-237-11/+101
| | | | | | Bug: 3311719 Change-Id: Ie596304070e321ad23fb67a13bf05e2b6af1b54b
* Rename variables with obscure names.Jean Chalard2011-02-222-34/+37
| | | | | | | | | 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-223-14/+98
| | | | | | | | | | | 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-174-12/+13
| | | | | Bug: 3428942 Change-Id: Id62f467ce4e50c60a56d59bf96770e799a4659e2
* Promote full matches with differing accents.Jean Chalard2011-01-273-21/+39
| | | | | | | | | | | 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-273-7/+14
| | | | | | | | | | 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-076-48/+64
| | | | | | | 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-052-4/+77
| | | | Change-Id: I2569756c9ef4fa677ae52f2ccfcb90d2115d129f
* Suggest words with excessive chars out of proximity charssatok2010-12-133-46/+61
| | | | | | Bug: 3273807 Change-Id: Ib8f48e562bcf4c2aac0ad5cb46809fd5f539a322
* Suggest words with transposed charssatok2010-12-103-46/+110
| | | | | | Bug: 3193883 Change-Id: I884b669258bfc522bc04e14f22a7646164a4cac5
* Limit the suggestions with an excessive character by filtering proximity ↵satok2010-12-102-4/+30
| | | | | | | characters Change-Id: Iad26dad545f1a431aa0fa53f99198b27defd03a3 ug: 3269482