PHP Language Detection

A pure PHP implementation of language detection (of arbitrary text) based on n-gram profiles. The algorithm is taken from the following paper. This demo classifier is trained on Dutch, English, French, Portugese, German, Indonesian and Spanish.

I revisited this problem later on using python and a much better understanding of machine learning: LanguageIdentification in python.