Efficient language identification in monolingual and multilingual documents | Synapse