Well I am not aware of any pretrained model that does what you ask (there is one to identify programming languages 17 ). You could train your own model to do so, something like multilingual distilbert 30, but again, seems a bit overkill.