主权项 |
1. A method comprising:
outputting, by a computing device and for display, a graphical keyboard comprising a plurality of individual character keys; receiving, by the computing device, an indication of a single gesture at the region of the graphical keyboard; determining, by the computing device, based on the single gesture, a first selection of one or more of the plurality of individual character keys; determining, by the computing device, based on the first selection of the one or more of the plurality of individual character keys, a partial prefix of one or more candidate words; determining, by the computing device, based on the single gesture, a second selection of a particular individual character key of the plurality of individual character keys; responsive to determining the second selection of a particular individual character key of the plurality of individual character keys:
determining, by the computing device, based at least in part on the first selection of the one or more of the plurality of individual character keys and the second selection of the particular individual character key, at least one candidate word from the one or more candidate words, the at least one candidate word including:
the partial prefix,a first partial suffix that includes, at a beginning position of the first partial suffix, a sole character based on the particular individual character key, andat least one second partial suffix, the at least one second partial suffix being exclusive from the partial prefix and the first partial suffix; andoutputting, by the computing device, for display at a region of the graphical keyboard that is based on a location of the particular individual character key, a first character string that is the first partial suffix of the at least one candidate word; determining, by the computing device, based on the single gesture, a third selection of the first character string that is the first partial suffix of the at least one candidate word; and responsive to determining the third selection of the first character string that is the first partial suffix of the at least one candidate word, outputting, by the computing device and for display, a second character string that is the second partial suffix. |