The following code is developed using Python 2.7.x. might make it Python 3 compatible. For testing on Microsoft Windows systems, you will need to install Python. Check this site here... Mac OS X and typical Linux systems should come with an appropriate version of Python pre-installed.

To test LID, just run:

python lid.py sample*.py

in a command line shell.

For an implementation in other languages, have a look at the bottom of the Home-page.
The main code for the language identifier.
The language identifier using Win32 Python extensions and output via speech synthesis. (Only for Windows)
The main code of the LID trainer. It generates n-gram models from given texts of a specific language.
A sample text for testing with LID.
A sample text for testing with LID.
A sample text for testing with LID.
Croatian language model (just a simple example trained on a couple of text-files).
English language model (just a simple example trained on a couple of text-files).
German language model (just a simple example trained on a couple of text-files).
Italian language model (just a simple example trained on a couple of text-files).
Japanese language model (just a simple example trained on a couple of text-files).
Afrikaans language model