The sharing of language models is disclosed. In one embodiment, a language model
service is provided that is shareable among handlers for input devices. The service
includes a pre-processing mode of operation, and a correction mode of operation.
In the former mode, the language model service is designed to receive a range within
a document from a handler for an input device, and in response provide advice regarding
text under consideration by the handler to insert within the document at the range,
based on the context of the document within the range. In the latter mode, the
language model service is designed to supervise correction over a range of text
within a document, in which a number of different handlers for a number of different
input devices were initially responsible for insertion of the text, such that the
service solicits suggestions from the handlers, and based thereon determines text
corrections. The corrections can then be made by the handlers, or by the service.