3 * Demonstrates how to use ISO language codes.
5 * The "name mode" changes the way languages are accepted and returned.
7 require_once 'Text/LanguageDetect.php';
8 $ld = new Text_LanguageDetect();
10 //will output the ISO 639-1 two-letter language code
13 echo $ld->detectSimple('Das ist ein kleiner Text') . "\n";
15 //will output the ISO 639-2 three-letter language code
18 echo $ld->detectSimple('Das ist ein kleiner Text') . "\n";