aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/spellcheck/AndroidWordLevelSpellCheckerSession.java (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Rename to Kelar Keyboard (org.kelar.inputmethod.latin)Amin Bandali2025-01-111-390/+0
|
* Spelling cannot cache words across invocations.Dan Zivkovic2015-04-291-23/+9
| | | | | | | | | | | 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
* Fix bug in regular expression stripping quotes.Martin Paraskevov2015-04-201-1/+1
| | | | Change-Id: Iaf84a9a1f00b31daf7225991c4cfc5f17b578028
* Strip quotes from begining/end of a word before checking its validity.Martin Paraskevov2015-04-151-8/+13
| | | | | | Bug: 20142633 Change-Id: Ia0f3661ac3028473c00f83df72dcb9e1fd134247
* Make logs less spammy.Dan Zivkovic2015-04-071-2/+6
| | | | | | Bug 19987461. Change-Id: Ibf58f2b26c2d01f765ef32abb47c84be49e2ba9f
* Skip decoding for in-vocabulary words.Dan Zivkovic2015-04-071-36/+30
| | | | | | | | | | The spell checker is decoding, and getting multiple sets of suggestions, for every word it encounters. It even does that for in-vocabulary words, though it will not underline or show suggestions for in-vocabulary words. Bug 19987461. Change-Id: Ie61101fa8ab8917f3f49c77768dbcffd96c1685e
* "spellcheking" needs spellchecking.Chieu Nguyen2015-03-271-1/+1
| | | | Change-Id: Iaf4cd5d11b113be4738182fb662e5dc54b2f5366
* Avoid creating empty String[].Dan Zivkovic2015-03-121-9/+8
| | | | | | | | Minor cleanup on the way to fixing spelling for downloaded language. Bug 19710676. Change-Id: I7be25fa82248f0317d894d44802bede9dbc4fe2a
* Use Keyboard in several interfaces.Mario Tanev2015-02-251-21/+8
| | | | | | | | | 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/+6
| | | | Change-Id: I8bd544d03d9087a02294b08a9986cad229dae795
* AOSP changes to use KeyboardLayout to support the new DictionaryFacilitatorMohammadinamul Sheik2015-02-041-1/+5
| | | | Change-Id: Ie0c9ce805d9ad009fc9bbaac37b715aff90cd844
* Add a method for handling for words not found in dictionary.Chieu Nguyen2015-01-141-0/+10
| | | | | | | | | This is apparently called only once for every unique word, so repeated instances of the same word are not handled separately. Upon changing orientation of the device, however, all invalid words in the textbox are underlined again and this method is called for each unique instance in order. Change-Id: Ic57e4b9e5675bd7abd723644aa318d964f7f875f
* Make LocaleUtils.constructLocaleFromString as @NonnullTadashi G. Takaoka2014-11-211-1/+2
| | | | Change-Id: I82d574c67b25239510f3ecc8882efe46e40677eb
* Move util classes under commonJean Chalard2014-11-071-2/+2
| | | | | | | Also why did we have two copies of LocaleUtils >.> Bug: 18108776 Change-Id: I03b4403dfd51934e66b567f2f8b87da419cfb3ab
* 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-1/+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-4/+3
| | | | | | | | | | | | | | | | | | | | | 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
* Rename PrevWordsInfo to NgramContext.Keisuke Kuroyanagi2014-09-291-15/+12
| | | | | Bug: 14425059 Change-Id: Id06a71681fa8b5e589e29fba10fe5c1cfed66984
* Remove SuggestionsGatherer.Keisuke Kuroyanagi2014-07-101-8/+63
| | | | | | Bug: 13689011 Bug: 13630847 Change-Id: I9930d5ce9cbe16489dc69f68b9590d72afe463b5
* Quit sorting suggestions in AndroidSpellCheckerService.Keisuke Kuroyanagi2014-07-101-18/+5
| | | | | | | | Suggestions have been sorted in SuggestionResults. Bug: 13689011 Change-Id: Iec21e97119ceb7c71673d5b15bb1f06040b59fef
* Make spell checker use dictionary facilitator.Keisuke Kuroyanagi2014-07-101-85/+51
| | | | | Bug: 13630847 Change-Id: I07d17ccf5ce0755f63a0b8d236d77600baaf62b6
* Move phrase gesture from additional features to public.Keisuke Kuroyanagi2014-07-081-2/+7
| | | | | Bug: 15758242 Change-Id: I703dc2703afdf9402c5d2ac27411b74ece993dba
* [SD9] Add armenian and georgian scriptsJean Chalard2014-07-011-1/+1
| | | | | Bug: 15840116 Change-Id: I91719e4fc2e3fe29320e4cb8b1a2f8f93c44cc4d
* [SD7] Actually check for script.Jean Chalard2014-07-011-2/+2
| | | | | | | ...also implement the check for Hebrew and Arabic. Bug: 15840116 Change-Id: Ia6433d7d98038ade64c171be4fe4b3f094111fac
* Add a relevant suggestion to period-checkable requestsJean Chalard2014-06-271-1/+3
| | | | | Bug: 15412461 Change-Id: Ibf37df4d31141a7e43b54d6342e7861eedb1c03b
* Merge "[SD1] Move script-related methods to a new utils class."Jean Chalard2014-06-241-41/+4
|\
| * [SD1] Move script-related methods to a new utils class.Jean Chalard2014-06-261-41/+4
| | | | | | | | | | Bug: 15840116 Change-Id: I3a2a9c41e40590c0116c7885a49c6fa308ed8f44
* | Make PrevWordsInfo have multiple words' information.Keisuke Kuroyanagi2014-06-251-2/+2
|/ | | | | Bug: 14425059 Change-Id: I2bd6a872904a44b80f638a13d91a97559217cc1a
* Special case periods in the spell checkerJean Chalard2014-06-101-0/+16
| | | | | | | | Special case <valid word>.<valid word> to send as a suggestion the same string where the periods is replaced by a space. Bug: 10780091 Change-Id: I43c94675977f9ab5d7ee5671486cb742b39f3974
* Remove mPrevWordsInfoJean Chalard2014-06-101-1/+1
| | | | | | | | 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
* Use Java 7 diamond operatorTadashi G. Takaoka2014-05-241-2/+1
| | | | Change-Id: If16ef50ae73147594615d0f49d6a22621eaf1aef
* Use PrevWordsInfo instead of String in Java side.Keisuke Kuroyanagi2014-05-191-13/+16
| | | | | | | Bug: 14119293 Bug: 14425059 Change-Id: I3d5da84881a49a04550180dd9aac2c37da2ed762
* Make session id mandatory for getSuggestions.Keisuke Kuroyanagi2014-05-161-1/+1
| | | | | Bug: 15008504 Change-Id: Ic4a17a4b7242118ae74fd89c695da2bb52204fb2
* Add languageWeight as an argument of getSuggestions.Keisuke Kuroyanagi2014-04-031-1/+2
| | | | | Bug: 8187060 Change-Id: I8ae20c957a8e127b76c83cc3a65ff052d43bf2b5
* [IL69.1] Move a static method to a utility class.Jean Chalard2014-01-241-4/+10
| | | | | | This is a followup to IL69. Change-Id: Iba154517aa7f75b9f16aa1b808c0da8d84be837f
* [IL70] Remove unused argumentsJean Chalard2014-01-231-1/+1
| | | | | Bug: 8636060 Change-Id: Iec56bce362ebfc52fedab02b127978abb4f3c7f9
* [IL69] Oust Keyboard from WordComposer#setComposingWordJean Chalard2014-01-231-1/+5
| | | | | Bug: 8636060 Change-Id: I624a45500603dfad355ee3b8b794b2d895219c0b
* [IL68] Start refactoring setComposingWordJean Chalard2014-01-231-5/+1
| | | | | Bug: 8636060 Change-Id: I242b7c264abf380bcd6b6b3c848238921f988e54
* Remove suggestions when string contains a periodJean Chalard2013-10-071-11/+31
| | | | | | | | | This is not the right way to do it, but it's simple and will kill the regression. We should investigate why the return values are wrong in this case. Bug: 10780091 Change-Id: I808727242c9cb1598df00a7426358dc3a658add4
* Pass additionalFeaturesOptions for getSuggestions().Keisuke Kuroyanagi2013-08-281-6/+8
| | | | | | | This fixes null pointer exceptions that are caused when getSuggestion() is called from spell checker. Change-Id: Ifc9e7abb900e1a4646e33c91022effde439673e4
* Move util classes to the latin/utils directoryKen Wakasa2013-06-241-2/+2
| | | | Change-Id: I1c5b27c8edf231680edb8d96f63b9d04cfc6a6fa
* Consolidate dummy proximity info to the spell checker infoSatoshi Kataoka2013-05-081-12/+5
| | | | | | Bug: 8783170 Change-Id: I067486e5ec1ae7cdef8e2121392464ba71ee8add
* refactor spell checkerSatoshi Kataoka2013-05-071-14/+14
| | | | Change-Id: Ie7bea23f2ac54f03572e77c31ba7cb3d5e8f8d2f
* Pass blockOffensiveWords as a parameterJean Chalard2013-05-011-1/+2
| | | | | Bug: 8773353 Change-Id: Ic1019742ce7ff6e4f7fff4d2729f8ab52d841488
* Don't insert automatic spaces when text looks like a URLJean Chalard2013-04-161-3/+5
| | | | | | | | | | | | | | | This is about as ad-hoc as it gets, but then again, what we want is probably as ad-hoc as it gets. All URL boxes I know of double as search bars, and not adding automatic spaces there sucks (e.g. in Chrome URL bar). And in other boxes actually you don't want to add a space if it looks like a URL. QSB isn't even a search box, and it behaves like this. So I think this is actually the right answer to the problem. Bug: 7062925 Change-Id: Ib09472b34644fd5bf2dc84bb97cedeeba28bcd02
* Fix a bug where autocorrection status would be wrong.Jean Chalard2013-04-101-1/+1
| | | | Change-Id: Ic220129dc59f585164dbf63591cd1c96de17fe6f
* Update commentsKen Wakasa2013-04-081-1/+1
| | | | Change-Id: I6aef328ec9041666cc168c8323bed04d39591b71
* Move a generic string utility to StringUtilsJean Chalard2013-04-051-3/+3
| | | | Change-Id: I9cc2e9a7ac0b3346af40bcb083f939333336cf09
* Merge the dictionary pack in Latin IME.Jean Chalard2013-03-191-4/+22
| | | | | Bug: 8161354 Change-Id: I17c23f56dd3bc2f27726556bf2c5a9d5520bd172
* CleanupsJean Chalard2013-02-111-1/+1
| | | | | | Follow-up to Idc6f419a Change-Id: I4aae8f4e19f27a0a309879dc19af6e40906d58c5