15. The computer-implemented method of claim 4 , further comprising, when the contents of the web page do not exceed at least one text threshold: identifying a resource identifier for the web page; identifying a language corresponding to the resource identifier in a mapping table that maps a plurality of resource identifiers to the plurality of languages; and setting the identified language as the input language.
20. The computer-implemented method of claim 15 , wherein the mapping table is stored on a remote server, and wherein the method further comprises: submitting, to the remote server, a request for a language based on the resource identifier; and receiving, from the remote server, the language in response to the request.