aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/Suggest.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Rename to Kelar Keyboard (org.kelar.inputmethod.latin)Amin Bandali2025-01-111-434/+0
|
* Update language to comply with Android's inclusive language guidanceJeff Sharkey2020-07-311-1/+1
| | | | | | | See https://source.android.com/setup/contribute/respectful-code for reference Bug: 161896447 Change-Id: I171bc299e660f96f20041a67a3052bd8a2ed781c
* Add prev words context to the SuggestedWordInfo.Mohammadinamul Sheik2015-03-191-3/+4
| | | | | | Bug: 19712589 Bug: 19715579 Change-Id: Ie06665cab8405455c1b0a2ff034e0bb0731c9156
* Remove rejected suggestion in LatinIME.Dan Zivkovic2015-03-161-2/+5
| | | | | | Bug 19744396. Change-Id: I64e59b3fb1ab627c70bf27a12a78d8d927da7e97
* Redundant code matches multiple languages.Dan Zivkovic2015-03-161-67/+11
| | | | | | | | | InputLogic should not have code that tweaks suggestion ranking based on the language of the source dictionary. Bug 19744396. Change-Id: I8c0849555e74cec1302e78da04148dedd1cddabe
* Remove ALS from LatinIME.Dan Zivkovic2015-03-111-7/+6
| | | | | | This fixes unit tests and brings us closer to a green build. Change-Id: Iffcc392eda4a7671a238b79cc7367320ca648725
* Merge "Don't assume that correctable words are invalid"Dan Zivkovic2015-02-261-6/+8
|\
| * Don't assume that correctable words are invalidDan Zivkovic2015-02-251-6/+8
| | | | | | | | | | | | | | | | | | | | | | | | Currently, the Delight3DictionaryFacilitator sets a boolean flag when the top suggestion score exceeds the auto-correction threshold. This flag is used to trigger auto-correction of the typed word. Also, the existing logic assumes that if allowsToBeAutoCorrected then the word is invalid, which is no longer true after we stopped using whitelists. Bug 19518376. Change-Id: Ifa7f6a09c07d25ac68c6cf3aec91f358bd88689f
* | Use Keyboard in several interfaces.Mario Tanev2015-02-251-22/+15
|/ | | | | | | | | Simplify interfaces by passing Keyboard instead of KeyboardLayout and ProximityInfo directly. Also require the Keyboard passed be non-null and change the SpellChecker to bail out if there is no keyboard for the locale. Change-Id: I960f15ff60171f55d3e0a96fd6469b7dc3a045e2
* Auto-correct without whitelist in Delight3.Dan Zivkovic2015-02-251-4/+7
| | | | | | Bug 19390471. Change-Id: Ie09b916ca80591c98f48ae1d74d4fd5b0c5d6b33
* Pass ComposedData to the decoder instead of WordComposer.Martin Paraskevov2015-02-241-5/+6
| | | | Change-Id: I8bd544d03d9087a02294b08a9986cad229dae795
* AOSP changes to use KeyboardLayout to support the new DictionaryFacilitatorMohammadinamul Sheik2015-02-041-8/+16
| | | | Change-Id: Ie0c9ce805d9ad009fc9bbaac37b715aff90cd844
* Allow whitelist changes when no close wordJean Chalard2014-11-261-10/+82
| | | | | | | | | | | | | | When there isn't a close word in another language of the current multi-language set, we allow whitelist entries to take force even if we are not confident in the current language. Bug: 18063142 Bug: 18130489 Bug: 18132240 Bug: 18136721 Bug: 18200415 Change-Id: I044674ba7b70aa86ab2a48d2e4d53a1c8007b62c
* Use confidence to fix whitelistJean Chalard2014-11-261-3/+16
| | | | | | | | | | | | | | With this the most obvious problem is fixed. However there are two remaining items : we should still enforce whitelist when there are no close candidates at all, and we should start in confident mode when pressing the globe key. Bug: 18063142 Bug: 18130489 Bug: 18132240 Bug: 18136721 Bug: 18200415 Change-Id: Ibc0571ae35fc28f8d13760aa86b25db1163d3e31
* Annotate the typed word with its source dictionaryJean Chalard2014-11-201-6/+12
| | | | | | | | | | | | | ...when applicable of course. This will allow for informing the language switching authorities that the typed word was a specific language, instead of leaving them in the dark. Bug: 18063142 Bug: 18130489 Bug: 18132240 Bug: 18136721 Bug: 18200415 Change-Id: Ice3e7026a68c3018f54d730ec84f6762bf55899b
* Make the typed word a SuggestedWordInfoJean Chalard2014-11-201-15/+18
| | | | | | | | That allows to carry the language information in an accurate manner. Bug: 18063142 Change-Id: I0bca8981372ae10648274095b18b26a3686b762b
* Remove a deprecated constructor to SuggestedWordsJean Chalard2014-11-071-1/+5
| | | | Change-Id: If4d358b3a11fb25fc214c728269519d8c25f9adc
* Merge "Remove Dict dependency on WordComposer and ProximityInfo"Jean Chalard2014-10-311-4/+4
|\
| * Remove Dict dependency on WordComposer and ProximityInfoJean Chalard2014-10-291-4/+4
| | | | | | | | | | Bug: 18108776 Change-Id: I9b399a44241e05a7add9bb8094263aa76de37880
* | Merge "[CS8] Add explanations"Jean Chalard2014-10-291-16/+28
|\ \ | |/ |/|
| * [CS8] Add explanationsJean Chalard2014-10-281-16/+28
| | | | | | | | | | Bug: 13238601 Change-Id: I72a78be5848485f7fd77f5586573692529c7547b
* | Move StringUtils under common.Jean Chalard2014-10-281-1/+1
|/ | | | | Bug: 18108776 Change-Id: Ia46a4102a0e86e71118ca5e641f9f531998e166b
* Move Constants.java to the latin.common packageKen Wakasa2014-10-231-0/+1
| | | | | | | Our intention is to have classes of latinime-common under the common package as much as we can. Change-Id: I76efbbbe7bebf1a4aa943715cdff64f91675e20d
* Fix some compiler warningsTadashi G. Takaoka2014-10-211-1/+1
| | | | | | | | | | | | | | | | | | | | | This CL fixes the following compiler warnings. - Indirect access to static member - Access to a non-accessible member of an enclosing type - Parameter assignment - Method can be static - Local variable declaration hides another field or variable - Value of local variable is not used - Unused import - Unused private member - Unnecessary 'else' statement - Unnecessary declaration of throw exception - Redundant type arguments - Missing '@Override' annotation - Unused '@SuppressWarning' annotations Bug: 18003991 Change-Id: Icfebe753e53a2cc621848f769d6a3d7ce501ebc7
* Enforce a length limit to auto-correction for some languagesJean Chalard2014-10-171-2/+58
| | | | | Bug: 15379262 Change-Id: I27fad12f468b5bc6ad1a0876aac72e5f5ca5760a
* [ML15] First step in removing DictionaryFacilitator.getLocaleJean Chalard2014-10-071-6/+6
| | | | | Bug: 11230254 Change-Id: Ied010ec6f1024080e8a499f682d2fc1780e82ef7
* Rename PrevWordsInfo to NgramContext.Keisuke Kuroyanagi2014-09-291-7/+7
| | | | | Bug: 14425059 Change-Id: Id06a71681fa8b5e589e29fba10fe5c1cfed66984
* Fix showing important notice even at beginning of sentenceTadashi G. Takaoka2014-09-181-2/+10
| | | | | | | This is a cherry-pick of Ic72d6fecc3 from lmp-dev. Bug: 17536096 Change-Id: Id76b8f8dc85d03bc7ed5f24800301c081a82a8d2
* Making spelling of the word "distracters" consistentAdrian Velicu2014-09-171-1/+1
| | | | | Bug: 17537869 Change-Id: Ibfc1c84aff72aeb76c9b127503369d00f3dfaceb
* [ML7] Have multiple DictionaryGroup instances in facilitatorJean Chalard2014-09-161-1/+1
| | | | | | | This is the central change of multilingual input. Bug: 11230254 Change-Id: Id8b68fb101e837e8cf182ab4bc1e55e4da5cc49d
* [ML3] Put the locale in SuggestedWordInfoJean Chalard2014-09-011-6/+10
| | | | | | ...and remove it from SuggestionResults. Change-Id: Iae85ec7e82e2caf18cc6d7656aa46dc150707cdd
* Fix a bug where the top prediction would disappear.Jean Chalard2014-08-261-6/+6
| | | | | | | | | | This is because prediction can't be easily distinguished in style. This fixes the bug by simulating the right members, but some refactoring should be done to remove useless booleans. Bug: 17271923 Change-Id: Ib88f3fb95678021624e59535492926dd315d26fb
* Add the input style to SuggestedWords.Jean Chalard2014-08-141-19/+18
| | | | Change-Id: I81f37d08659d449822b027d3d5912e11eec8b8ff
* Rename LatinImeLogger to DebugFlagsTadashi G. Takaoka2014-07-161-1/+2
| | | | | Bug: 15318007 Change-Id: Ic0268fd12865c9a692a5e7110a9beb76cb8b6d7f
* Move phrase gesture from additional features to public.Keisuke Kuroyanagi2014-07-081-14/+11
| | | | | Bug: 15758242 Change-Id: I703dc2703afdf9402c5d2ac27411b74ece993dba
* [CS6] Cut out methods to clarify what we are doingJean Chalard2014-06-301-39/+45
| | | | | Bug: 13238601 Change-Id: I99cc62e91b1e89130358fded572987023d919507
* [CS5] Use a local var to keep the first suggestionJean Chalard2014-06-271-6/+7
| | | | | Bug: 13238601 Change-Id: Ida8973945e8b141d01ea9d1825b89d84f0911575
* Fix the buildJean Chalard2014-06-261-1/+1
| | | | | | That was a merge not well resolved by git >.> Change-Id: I3cd042d6a5206daf1e9942358405d647c67423dd
* [CS4] Remove useless tests and processingJean Chalard2014-06-261-22/+9
| | | | | | | | Since we have a de-duped and transformed collection, we can just read from it instead of computing it separately. Bug: 13238601 Change-Id: I0aa4b0d91d3b350f9449e13658bfb587fc538764
* [CS3] Move transformation of words to earlierJean Chalard2014-06-231-15/+15
| | | | | Bug: 13238601 Change-Id: I37fe66c6152cdf8c60878d5619bb5dc41f3223df
* [CS2] Refactor a bit removeDupsJean Chalard2014-06-231-2/+2
| | | | | | | | This way is more understandable, and also supporting an external string is helping for future refactorings Bug: 13238601 Change-Id: I4ebeed46eb0b35011164946af71ac257c6449ddb
* [CS1] Some initial clean upJean Chalard2014-06-231-24/+17
| | | | | Bug: 13238601 Change-Id: I54ee9a85ecfee3c50c8db3eb4cd6f391a775a630
* [CM1] Let predictions be aware of capitalize mode.Jean Chalard2014-06-161-1/+2
| | | | | Bug: 15554503 Change-Id: If5e8c0d94ed26d929400ccbb0d45ac23dd98d180
* Remove mPrevWordsInfoJean Chalard2014-06-101-8/+8
| | | | | | | | This member has outlived its usefulness. It's not clear now that it makes things really faster, but it does bring a lot of complexity that we can avoid by removing it. Change-Id: Ifbc8094a45b56b958fe165b1930f4cc358a97721
* Remove LatinImeLogger and UsabilityStudyLogUtilsTadashi G. Takaoka2014-05-291-13/+0
| | | | | | | This CL must be checked in together with Ie52007dc5c. Bug: 15318007 Change-Id: Ie665f296e43b5485ae8ba7e949aa262794ee0dcc
* Stop directly checking SuggestedWordInfo.mKindKeisuke Kuroyanagi2014-05-281-1/+1
| | | | | | Bug: 15298959 Change-Id: Iba6eeb7981634e7ddb896404978b30f6efd6e72f
* Use whether it's exact match to detect distracters.Keisuke Kuroyanagi2014-05-261-2/+2
| | | | | Bug: 13142176 Change-Id: Id5b7286d28897931f7bfe571be45d46ffeef4adf
* Use Java 7 diamond operatorTadashi G. Takaoka2014-05-241-7/+5
| | | | Change-Id: If16ef50ae73147594615d0f49d6a22621eaf1aef
* Merge "Revert "Fix: too many calls to getSuggestedWordsForTypingInput""Ken Wakasa2014-05-231-0/+1
|\
| * Revert "Fix: too many calls to getSuggestedWordsForTypingInput"Ken Wakasa2014-05-231-0/+1
| | | | | | | | | | | | | | This reverts commit 7aa895e2e3edb59620c28354c7d7746b93964b10. Bug: 15148015 Change-Id: If39c4f8b897f247d4eb935923d55d81def4c8fb4