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
  • Could you add more requirements for the proposed software? What environments does it needs to run? Command line only? Price/free? Anything that could be used to refine a search. – Alejandro May 16 '18 at 14:46
  • I've added "in linux command shell:" to the question, thanks – Andrés Chandía May 16 '18 at 15:02

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

  • Excellent, thanks it works like a charm!!!! – Andrés Chandía May 16 '18 at 18:26
  • It wasn't at your list but it also detects Catalan which I also needed... – Andrés Chandía May 17 '18 at 12:48
  • Yes, more languages are supported, but I can't seem to find an up to date list – tischepe May 17 '18 at 13:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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