Skip to content

v2.0.1 - Command line executable

Choose a tag to compare

@peterc peterc released this 11 Jul 12:23
· 4 commits to master since this release

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
de

Suggested by Keith Bennett in #50.