mirror of
https://github.com/friendica/friendica
synced 2024-11-13 13:02:54 +00:00
11 lines
217 B
PHP
11 lines
217 B
PHP
|
<?php
|
||
|
require_once 'Text/LanguageDetect.php';
|
||
|
|
||
|
$text = 'Was wäre, wenn ich Ihnen das jetzt sagen würde?';
|
||
|
|
||
|
$ld = new Text_LanguageDetect();
|
||
|
$result = $ld->detectSimple($text);
|
||
|
var_dump($result);
|
||
|
//output: german
|
||
|
?>
|