12. The method of claim 10 , wherein the first context and input context are determined using a sensor of the electronic device.
10. The method of claim 1 , 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.