aboutsummaryrefslogtreecommitdiffstats
path: root/native/src/defines.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Implement multi words suggestions step1satok2012-01-301-3/+3
| | | | Change-Id: I96e8e1b0d9ccc0ed13d53c40300d8c19bcb7af5b
* Merge missing space and mistyped space correction algorithmsatok2012-01-271-3/+2
| | | | Change-Id: Idd64d38d3d29be24748f9c0359667883698a5756
* Refactor words priority queuesatok2012-01-261-0/+1
| | | | Change-Id: I14b7ef39263ad2b1d5ec087bc80b7b8d7c30abe7
* Merge "Do other error correction for the second word of two word correction"satok2012-01-251-0/+4
|\
| * Do other error correction for the second word of two word correctionsatok2012-01-251-0/+4
| | | | | | | | | | | | result: I4e0b68a12190933f9 Change-Id: I98afce6fe4d5bde97392146d204370ba31a72566
* | Add a test for auto-correction.Jean Chalard2012-01-251-0/+1
|/ | | | | | | | | Fix two related subtle bugs: - Stop singling out fat-finger-only corrections for rejection when touch coordinates are not available. - Remove a racy check that would happen only in debug mode Change-Id: Ic904f9b27c091ca6b369052c4e65a630bff81257
* Two words error correction with other error correction for the first wordsatok2012-01-191-2/+6
| | | | | | | | | | | | | | | | | | | +1 26 -1 5 +2 0 -2 0 +3 0 -3 0 +4 9 -4 25 +5 20 -5 21 +6 13 -6 6 +7 15 -7 26 Change-Id: Iad682d417a6bb42b11ca6e60157698ca66fef3ff
* Prepair for advanced two words error correctionsatok2012-01-171-2/+4
| | | | Change-Id: I4c8a21f0f6e349ddafd9b402583321a60855cfe8
* Use edit distance for transposing correctionsatok2012-01-171-1/+1
| | | | | | | | | | | | | | | | | | | +1 73 -1 4 +2 0 -2 0 +3 0 -3 0 +4 11 -4 19 +5 9 -5 3 +6 2 -6 63 +7 2 -7 8 Change-Id: I269cd2386f451f8932e4e0ae66223e794fdfa862
* Stop avoiding adding what the user typed to candidatesJean Chalard2012-01-161-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There does not seem to be any reason other than a historical one to avoid doing this, but it takes processing power and makes things more complicated. This has a very limited impact on regression tests: 5 -> 3 [He, the] 5 -> 3 [An, an] 5 -> 3 [Where, where] 5 -> 3 [This, this] 7 -> 1 [wAtch, watch] 6 -> 4 [oveNs, oceans] 5 -> 1 [Ahere, Where] 7 -> 1 [Hast, Hast] 7 -> 5 [bjp, bill] 5 -> 1 [What, What] 5 -> 3 [Sound, So und] 7 -> 3 [causalities, casualties] 7 -> 3 [discontentment, discontent] 7 -> 3 [irregardless, regardless] 5 -> 1 : 2 5 -> 3 : 5 6 -> 4 : 1 7 -> 1 : 2 7 -> 3 : 3 7 -> 5 : 1 +1 4 -1 0 +2 0 -2 0 +3 8 -3 0 +4 1 -4 0 +5 1 -5 7 +6 0 -6 1 +7 0 -7 6 Change-Id: I6407cf922f27bbd3992df11d63690e71fc61111b
* Store suggestions for each input length for missing space algorithm etc.satok2012-01-161-14/+16
| | | | Change-Id: Ief8f6ddd29e043744863e5b9be3a51a70987291c
* New LOG libsatok2012-01-131-8/+11
| | | | Change-Id: I977e7e10fa58c0a64ca0c3c7b5cb2272446e3efe
* Use placement new to construct the queuesatok2012-01-131-0/+1
| | | | Change-Id: I455f9954165bd4524f2883db7ea24a6fed3015f9
* Prepare for proximity + two word correction No2satok2011-12-191-1/+1
| | | | Change-Id: Idfa1413e853299f1db459ef07da3efa932047981
* Add words priority queue poolsatok2011-12-151-0/+4
| | | | Change-Id: I152df7b876a1756b69ded2ca4fb3ee26b38c971f
* Unbundle members in unigram_dictionarysatok2011-12-141-1/+1
| | | | Change-Id: Id737d943d20e3de3db568162caf40d3e956c7fae
* Use priority queue for native string buffersatok2011-12-131-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | +1 2 -6 2 Performance before ==== test finished, terminate logcat ===== (0) 100.34 (0.26%) (1) 37149.26 (95.30%) (2) 8.43 (0.02%) (3) 11.18 (0.03%) (4) 9.92 (0.03%) (5) 1330.60 (3.41%) (6) 250.46 (0.64%) (20) 12.41 (0.03%) Total 38982.50 (sum of others 38872.59) after ==== test finished, terminate logcat ===== (0) 97.65 (0.26%) (1) 35427.43 (95.32%) (2) 10.30 (0.03%) (3) 8.95 (0.02%) (4) 11.01 (0.03%) (5) 1224.67 (3.30%) (6) 243.76 (0.66%) (20) 40.91 (0.11%) Total 37167.04 (sum of others 37064.68) Change-Id: Id4d3b88a9cdef765affc52973aeac951ecc6a8ca
* Calibrate the scores of the proximity chars according to the distances.Yusuke Nojima2011-10-111-2/+6
| | | | | | | | | | | | | | | | | | | +1 75 -1 27 +2 0 -2 0 +3 0 -3 0 +4 30 -4 48 +5 37 -5 27 +6 4 -6 35 +7 9 -7 18 Change-Id: I3c6ab06a0084c18ab595147c36c2ff4b1e961a7b
* Enable score calibration by touch coordinatesYusuke Nojima2011-10-051-1/+1
| | | | | | | | | | | | | | | | | | | | Result of diff.sh: +1 3 -1 3 +2 0 -2 0 +3 0 -3 0 +4 1 -4 3 +5 3 -5 2 +6 3 -6 1 +7 1 -7 2 Change-Id: I41b803df23ac03e1fc81043df4e1e6a63c0afbb1
* Promote touches in hit box according to the distance from sweet spotYusuke Nojima2011-10-051-2/+3
| | | | Change-Id: Ice0fd0514304a79aed67627c2ea3439bd5177de4
* Demote words with a capitalized charsatok2011-10-031-0/+1
| | | | | | | | | | | | | | | | | | | | | Bug: 5371514 +1 4 -1 2 +2 0 -2 0 +3 0 -3 0 +4 1 -4 3 +5 0 -5 12 +6 3 -6 3 +7 12 -7 0 Change-Id: I6b46e43f9059f1e8a1cc02a626ea6eb8f1f9924f
* Calibrate score by touch coordinatesYusuke Nojima2011-09-301-0/+2
| | | | Change-Id: I9fc066eb1a455243536e72405922fcb7e26d7dc6
* Classify touches into three types.Yusuke Nojima2011-09-301-0/+5
| | | | Change-Id: I7c1d42835e0c15d596a1b66d421b0aa514ec0890
* Fix a dangerous macro.Yusuke Nojima2011-09-201-1/+1
| | | | Change-Id: Idb5530ceb03c415e4ec002f8d2fbbec837b35636
* Combine the skipped and transposed correctionsatok2011-08-231-2/+8
| | | | | | bug: 4170136 Change-Id: I7b50b40478abf27f51ec5e001815ff4882f3e5e5
* Improve fat finger correction.satok2011-08-171-0/+3
| | | | Change-Id: I37ed0dc6956f7e6fab5dcfd0483ab5691cd819d4
* Combilne normal correction and skip correctionsatok2011-08-151-0/+16
| | | | Change-Id: Ide868d977c0f35900340c7be1b71d572c69a8806
* Improve skip correction algorithmsatok2011-08-111-0/+1
| | | | Change-Id: Ife45e3886137d60a4e903d4c6f7a9ef20c7e705a
* Move code related to ranking algorithm to correction_state.cppsatok2011-08-031-3/+0
| | | | Change-Id: I52b34de45969fef82e46d9c10079c2d45e0b94eb
* Separate logging definitions in Csatok2011-07-141-4/+8
| | | | Change-Id: I1d79814d1fd74e92a280f355c535517618c51752
* Fix build for profilingsatok2011-07-141-0/+3
| | | | Change-Id: I39cd0fa37fb738dcbbcf82839b6bb030e3af606b
* Merge "Add a flag for a profiling"satok2011-07-121-22/+26
|\
| * Add a flag for a profilingsatok2011-07-131-22/+26
| | | | | | | | Change-Id: Iae509a24fd0f0f416376c3f8051aa2eb92d48659
* | New dict format, step 7Jean Chalard2011-07-131-0/+3
|/ | | | | | | | This actually implements the new dictionary format, but does not activate the implementation through #defines. Bug: 4392433 Change-Id: I9b26b9bcb4b823a36e0984799b69730acfc6f7f3
* 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
* Promote a word with a missing space because the formula was changed by ↵satok2011-04-191-1/+1
| | | | | | Ifa4338c5f4 Change-Id: Id4bc965aef387800facb64164d8c36a3bdd2fa07
* Promote the correction of words with a missing space charactersatok2011-04-181-1/+1
| | | | Change-Id: I37ba618b54f7115163a3e9c6c555485e7024dc92
* Promote a word with a proximity charactersatok2011-04-141-1/+1
| | | | | | Bug: 4293295 Change-Id: Ib0ec8aff087c71c4fbe983f3f5bc78e9c7868fd8
* Promote a word with only one proximity character.satok2011-04-131-1/+2
| | | | | | Bug: 4271049 Change-Id: I755986f582f43417fda6b117207530c519233baf
* Change the formula of the missing character.satok2011-04-131-1/+2
| | | | | | | | | | | | - 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-191-2/+2
| | | | Change-Id: I9c39ba24578931944aae8182918ed48a2e82eb39
* Tweak the demotion rate for a word with missing lettersatok2011-03-071-1/+1
| | | | | | Bug: 4027223 Change-Id: Ie9a5552d2f41d60f433573fde52efc097f5143bf
* A bug fix for the mistyped space algorithmsatok2011-03-041-1/+1
| | | | | | | | Bug: 3311719 -- also fixed compiler warnings Change-Id: I6941c0d02f10d67af88bc943748dde8d8783fabb
* Merge "Demote skipped characters matched words with respect to length." into ↵Jean Chalard2011-03-041-1/+1
|\ | | | | | | honeycomb-mr1
| * Demote skipped characters matched words with respect to length.Jean Chalard2011-03-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | 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-041-0/+3
| | | | | | | | | | | | Bug: 3311719 Change-Id: Ide12a4a6280103c092fa0f563dd5b9e3f7f5c89b
* | Fix a bug with umlaut processing.Jean Chalard2011-03-041-0/+4
|/ | | | | Issue: 3275926 Change-Id: Ibcb00aaea3ff05ad59ad4e8e54dd3caab5ab9bca
* Add proximity info to nativesatok2011-02-231-0/+2
| | | | | | Bug: 3311719 Change-Id: Ie596304070e321ad23fb67a13bf05e2b6af1b54b
* Force autocorrection of matching words with different accents.Jean Chalard2011-02-221-3/+3
| | | | | | | | | | | 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