Franc as Binary
The Franc Natural Language Detection library inside a single executable with no dependencies.
Download the pre-built binary for your Operating System from the Release page.
franc-bin [options] <string>
<string> is the text to recognize
--helpoutput usage information
--versionoutput Franc-Cli version number
--min-length <number>minimum length to accept
--only <string>allow specific languages
--ignore <string>disallow specific languages
--alldisplay all guesses with probability score
$ franc "Alle menslike wesens word vry" # afr
output language from stdin (expects utf8)
$ echo "এটি একটি ভাষা একক IBM স্ক্রিপ্ট" | franc # ben
ignore certain languages
$ franc --ignore por,glg "O Brasil caiu 26 posições" # src
Support 187 languages. See Franc supported languages for more info.
Franc can support more than 380 languages, but this packaged version stops at 187
Compile from source
- NodeJS (8.0 or newer)
Generate the binaries
Download all the dependencies
# pull the dependencies npm install
Now generate the binaries for MacOS, Windows and Linux in the
# Build the executables npm run production
Contributions are welcomed, just make a pull request.
This project is licensed under the MIT license, see