mirror of
https://github.com/friendica/friendica
synced 2024-12-25 06:40:17 +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
|
||
|
?>
|