1

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
0

1 Answer 1

8

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

2
  • It wasn't at your list but it also detects Catalan which I also needed... Commented May 17, 2018 at 12:48
  • Yes, more languages are supported, but I can't seem to find an up to date list
    – tischepe
    Commented May 17, 2018 at 13:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.