28. The computer-readable storage medium of claim 22 , wherein: the obtained corpus of text is associated with a first context; the input is associated with an input context; and ranking the plurality of candidate word strings is based on a degree of similarity between the input context and the first context.
28. The computer-readable storage medium of claim 22 , wherein: the obtained corpus of text is associated with a first context; the input is associated with an input context; and ranking the plurality of candidate word strings is based on a degree of similarity between the input context and the first context. 29. The computer-readable storage medium of claim 28 , wherein the first context includes a first recipient and a first application of the electronic device, and wherein the input context includes a second recipient and a second application of the electronic device.