aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/DictionaryFacilitator.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Rename to Kelar Keyboard (org.kelar.inputmethod.latin)Amin Bandali2025-01-111-176/+0
|
* Look up thresholds during decoder reset.Dan Zivkovic2015-05-041-1/+1
| | | | | | Bug 20701628. Change-Id: I4de89587776a0859aeda5d2ed76ab1eb4f918458
* Delete history on upgrade in LatinIME.Dan Zivkovic2015-05-011-1/+5
| | | | | | Bug 20733902. Change-Id: Ibe27e6cafe4db87ba62d7df708229e0d8564ffa8
* Spelling cannot cache words across invocations.Dan Zivkovic2015-04-291-0/+13
| | | | | | | | | | | We want to let the facilitator decide if a word is valid or invalid, and cache the answer in the facilitator's cache. The spell checker session doesn't need its own word cache, except as a crutch to communicate suggestions to the code that populates the suggestion drop-down. We leave that in place. Bug 20018546. Change-Id: I3c3c53e0c1d709fa2f64a2952a232acd7380b57a
* Personal dictionary feeds a personal LM.Dan Zivkovic2015-04-091-21/+4
| | | | | | Bug 20043003. Change-Id: I5ccac344c089855474263d1cdc547da1e6779301
* Change DictionaryStats to report content version.Dan Zivkovic2015-03-241-2/+2
| | | | | | Bug 19908719. Change-Id: I5a00b5277e9cd7d964b53ff5823bada21be110fa
* Notify the facilitator on IME start/finish.Dan Zivkovic2015-03-201-0/+18
| | | | | | | | Allows the facilitator to flush language models without a recurring task. Bug 19773937. Change-Id: I01a3c10da26f9df38fee05df33387eb082e2ff33
* Remove ALS from LatinIME.Dan Zivkovic2015-03-111-20/+6
| | | | | | This fixes unit tests and brings us closer to a green build. Change-Id: Iffcc392eda4a7671a238b79cc7367320ca648725
* Remove deprecated distractor filtering methods.Dan Zivkovic2015-03-111-7/+0
| | | | Change-Id: I10ccf75d9c00d66b4e85de6c3c019242f2e90b0e
* Delete user history files.Dan Zivkovic2015-03-111-3/+3
| | | | | | Bug 19669016. Change-Id: I8069fe561347851bf3c27423dbd8ba99d38c049e
* Handle words longer tha 256 characters.Dan Zivkovic2015-03-051-1/+1
| | | | | | Bug 19612315. Change-Id: I75e84df88b4da5cfc6a39b956613972841342c4b
* Add DictionaryFacilitator dump().Chieu Nguyen2015-03-031-1/+3
| | | | Change-Id: I8b75aded3fc2b9b33128b6ba5a3e8d943dfca352
* Use Keyboard in several interfaces.Mario Tanev2015-02-251-3/+3
| | | | | | | | | 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
* Pass ComposedData to the decoder instead of WordComposer.Martin Paraskevov2015-02-241-1/+2
| | | | Change-Id: I8bd544d03d9087a02294b08a9986cad229dae795
* Pass long timestamps to DictionaryFacilitatorJatin Matani2015-02-231-2/+2
| | | | Change-Id: I95500f210ed409c0ff254b08b68fe3b5b59ba4f4
* Remove unused APIs in DIctionaryFacilitatorJatin Matani2015-02-201-21/+0
| | | | Change-Id: Iae20a0a3b7c1aa0c2f6d29cef780fb50dc9010cb
* Add tests for Contact* classesJatin Matani2015-02-201-0/+13
| | | | | | Also add empty implementation for dictionary facilitator iteration APIs Change-Id: Ia847e3faa75075c819fcfda89193d1024d2d5aca
* Add more options for calling removeWordFromPersonalizedDicts.Tom Ouyang2015-02-191-1/+3
| | | | | | Bug: 19441205 Change-Id: I41aff536a64271d2dc9489a20df33d64170756cc
* Refactor content provider code from ContactsDictJatin Matani2015-02-111-0/+2
| | | | | | | | | Break contacts binary dictionary into two parts - one that talks to contacts content provider and maintains local state. Includes a manager class and a content observer - other one that just manages the dict code. Change-Id: Ie8f89ac9ce174c803ff3168ee0bee5cbe7721d5b
* Add a addOrIncrement term api to DicFacilitatorJatin Matani2015-02-101-0/+6
| | | | | | | The API is used by the decoder to add term to the dictionary. Change-Id: I607c8c676b7650f3052b2d3ed3f7f656573fca45
* Remove distracter filter from client.Dan Zivkovic2015-02-091-4/+0
| | | | | | Bug 19296201. Change-Id: Ic834e5956347cd86a96bd14024c42ad8ee258659
* Cleanup in preparation of distracter change.Dan Zivkovic2015-02-061-11/+9
| | | | | | Bug 19296201. Change-Id: If016da2b7f4b3ecb9afd6d7aed9d19fbd4938758
* Use shared constants in old+new facilitators.Dan Zivkovic2015-02-041-0/+29
| | | | Change-Id: I18b701df6ecbcc20ff0c664c218289179c4b2b2d
* Don't check user dictionary, except for spelling.Dan Zivkovic2015-02-041-1/+3
| | | | | | | | We check different lists of dictionaries based on the use case. Bug 19270992. Change-Id: Ide69f2855978ebad32a58e9689b3a8d47e095994
* AOSP changes to use KeyboardLayout to support the new DictionaryFacilitatorMohammadinamul Sheik2015-02-041-1/+3
| | | | Change-Id: Ie0c9ce805d9ad009fc9bbaac37b715aff90cd844
* Remove last vestiges of contextual+personal dictionary.Dan Zivkovic2015-02-041-2/+0
| | | | Change-Id: I20746381583ee8a4d7d42b1243f5c7ba45529e5e
* LatinIME portion of "green plus" feature.Dan Zivkovic2015-02-031-4/+0
| | | | | | | | | Removes the feature that adds strings to the user dictionary, aka the "green highlight with a plus sign". Bug 19237189. Change-Id: I2387129a3add2d69d625f2ff16ed8cab3f10a735
* Nuke AmanattoJatin Matani2015-02-021-22/+2
| | | | Change-Id: Ieff2cd37f869dca69abf53ac32a576c2e45cc1e3
* Change DictionaryFacilitator.java to an interface, create itsMario Tanev2015-01-271-832/+54
| | | | | | | | implementation DictionaryFacilitatorImpl.java and add a java-overridable factory DictionaryFacilitatorProvider.java used to create a DictionaryFacilitator. Change-Id: Id4a58ae31feaa4d12a048a772c8d76ff82fdee45
* Passing account info to dictionaryFacilitatorJatin Matani2014-12-161-37/+89
| | | | | | | | | | | | | | | | | | | | Attempt to use dictionary facilitor without invoking preference manager. Instead use account from settings only when things are being reset/changed. Discussion forked from ag/591663 Overall, the idea here is to maintain an account information inside dictionary groups. Reset the dictionary groups if account changes (the way we do for locale). Since only user history dictionary is currently affected, the check to reset user history dictionary also includes the check to verify the account. For other things remain the same. SettingsValues holds the current account (and is updated if prefs change due to change in account settings). The updated settings are then propagated to dictionary facilitator via LatinIME#loadSettings. Bug:18104749,18469539 Change-Id: I553e776e7ea125d0fb7a1fe70a4c7eb0b2277fb8
* Merge "Be always confident in the current language when only one"Jean Chalard2014-11-281-0/+3
|\
| * Be always confident in the current language when only oneJean Chalard2014-11-281-0/+3
| | | | | | | | Change-Id: I7ea289f7e78aa33562c7737e91024a25c02333b6
* | Merge "Make LocaleUtils.constructLocaleFromString as @Nonnull"Tadashi G. Takaoka2014-11-281-1/+1
|\ \ | |/ |/|
| * Make LocaleUtils.constructLocaleFromString as @NonnullTadashi G. Takaoka2014-11-211-1/+1
| | | | | | | | Change-Id: I82d574c67b25239510f3ecc8882efe46e40677eb
* | Use confidence to fix whitelistJean Chalard2014-11-261-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Add confidence.Jean Chalard2014-11-251-11/+21
|/ | | | | | | | | Bug: 18063142 Bug: 18130489 Bug: 18132240 Bug: 18136721 Bug: 18200415 Change-Id: Ica09d11cb95308dd014c4e4e0d99a30dd66bfea9
* Fix a NPEJean Chalard2014-11-201-0/+6
| | | | | Bug: 18451316 Change-Id: Ia20bf388471f84c963354df050182e722d966a02
* Remove Dict dependency on WordComposer and ProximityInfoJean Chalard2014-10-291-4/+3
| | | | | Bug: 18108776 Change-Id: I9b399a44241e05a7add9bb8094263aa76de37880
* 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
* Use trigrams for personalization dict.Keisuke Kuroyanagi2014-10-231-3/+3
| | | | | 5Bug: 14425059 Change-Id: I73cf6904e569d60996a3b079f16ea6df0cb90f02
* Fix Javadoc and null analysis related warningsTadashi G. Takaoka2014-10-231-2/+7
| | | | | | | This CL also adds @SuppressWarning("unused" to java-overridable package. Bug: 18003991 Change-Id: If70527e30654384705d7a814f5efd181d9f539e1
* Fix some compiler warningsTadashi G. Takaoka2014-10-211-29/+34
| | | | | | | | | | | | | | | | | | | | | 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
* Renaming "blacklist" flag to "possibly offensive"Adrian Velicu2014-10-211-2/+2
| | | | | | | | | No behaviour changes. Unified the overloaded FusionDictionary::add method to always take an isPossiblyOffensive argument. Bug: 11031090 Change-Id: I5741a023ca1ce842d2cf10d4f6c926b0efabaa78
* [ML19] Actually switch the language when appropriateJean Chalard2014-10-091-0/+6
| | | | | | | | That is, when auto-correcting or when manually picking. This is not great, but it's a good starting point. Bug: 11230254 Change-Id: I07627f48e2de1c28053d6572c7c72625808ec79c
* [ML17] Add a method to switch the most probable languageJean Chalard2014-10-071-6/+33
| | | | | | | | | | Also directly hold a ref to it. It's simpler for now, though we may want to remove it completely later to have a flat, purely weight-based system with no preference. Also split weights between gesturing and typing. Bug: 11230254 Change-Id: Ica15964a193ae6e7f14c85a9a3ed806130fa7efb
* [ML16] Remove DictionaryFacilitator.getLocale()Jean Chalard2014-10-071-10/+12
| | | | | Bug: 11230254 Change-Id: Ife99df42bc145fbd2d5c3128330bc0f88b104de9
* [ML15] First step in removing DictionaryFacilitator.getLocaleJean Chalard2014-10-071-14/+21
| | | | | Bug: 11230254 Change-Id: Ied010ec6f1024080e8a499f682d2fc1780e82ef7
* [ML14] Forward the locale list to relevant places, againJean Chalard2014-10-061-19/+24
| | | | | | | | | | | | | | | | Diff: +++ b/java/src/com/android/inputmethod/keyboard/internal/KeyboardBuilder.java @@ -735,7 +735,7 @@ public class KeyboardBuilder<KP extends KeyboardParams> { private boolean matchLocaleCodes(TypedArray caseAttr, final Locale[] locales) { // TODO: adujst this for multilingual input - return matchString(caseAttr, R.styleable.Keyboard_Case_languageCode, locales[0].toString()); + return matchString(caseAttr, R.styleable.Keyboard_Case_localeCode, locales[0].toString()); } private boolean matchLanguageCodes(TypedArray caseAttr, Locale[] locales) { Change-Id: Icefac18dd6d5fea97f591177cf8df1ba6de7f4f0
* Revert "[ML14] Forward the locale list to relevant places"Ken Wakasa2014-10-031-24/+19
| | | | | | | | | | This reverts commit 15dbd38283fc9c8fdfd2540f1d94d4dbf2eabcb5. Bug: 11230254 Reverting due to unit test breakage. Change-Id: Icf29ba5c808c754515aef2d1b4162d72f606acfe
* [ML14] Forward the locale list to relevant placesJean Chalard2014-10-031-19/+24
| | | | | Bug: 11230254 Change-Id: Idf3ed27b396d63ade9800c72c5ce0ed613f5f669