We used NanigoNet 8 , a language detector based on GCNNs (Gated Convolutional Neural Networks) (Dauphin et al., 2017) that supports human languages as well as programming languages.
we ran the language detector against both the source and the target and discarded all the edits where either is determined as written in a non-human language.