mirror of
https://github.com/friendica/friendica
synced 2024-11-14 18:22:55 +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
|
||
|
?>
|