Page 1 of 1

Re: How to pick english sentences between many languages?

Posted: Thu Apr 22, 2010 1:35 am
by requinix
My PHP answer would be "check if the binary string length doesn't match the multibyte string length", but I don't how close you can get to that with Postgre (not counting doing all the work in PHP).

Re: How to pick english sentences between many languages?

Posted: Thu Apr 22, 2010 3:00 am
by onion2k
There's a class in PEAR called Text_LanguageDetect that does want you want. It works pretty well. http://pear.php.net/manual/en/package.t ... detect.php