detect()
detect( $string, $is_clean = false) : array
Given a string, returns the language.
Algorithm by Cavnar et al. 94.
Parameters
$string | ||
$is_clean |
Returns
array —Language, Confidence
Detect the language of a text.
list($lang, $confid) = Pluf_Text_Lang::detect($string);