I need to detect the language of a huge amount of files, and I was wondering if there is some tool which I could use in a way similar to this, in linux command shell:
langdetector filetodetect > detectedlangfile
Apache Tika can do that for 18 languages: Danish, German, Estonian, Greek, English, Spanish, Finnish, French, Hungarian, Icelandic, Italian, Dutch, Norwegian, Polish, Portuguese, Russian, Swedish and Thai
The command on Linux would be:
java -jar tika-app-1.18.jar -l filetodetect > detectedlangfile 2>/dev/null