v2.0.1 - Command line executable
Installing the gem now also installs a whatlanguage command line executable. It reads from files given as arguments (or stdin) and prints the ISO 639 code of the detected language, or und if undetermined:
$ whatlanguage README.md
en
$ echo "Wie geht es dir heute?" | whatlanguage
deSuggested by Keith Bennett in #50.