1. A machine-implemented method, comprising: at an electronic device with one or more processors and memory: receiving a first language identification for a document; performing a modifying operation on the document in accordance with the first language identification; and determining based at least in part on results from the modifying operation, whether the first language identification for the document is correct.