Re: [PHP-I18N] Language detection
[email protected] (Jan Schneider) Tue, 12 Aug 2008 09:58:57 +0200
| Newsgroups | php.i18n |
|---|---|
| Message-ID | <[email protected]> |
Zitat von Darren Cook <[email protected]>: > I need to write (PHP) code to detect the language of a given block of > text. (For my purposes I want to initially distinguish between English, > Japanese, German, Simplified Mandarin, Traditional Mandarin, Arabic, > Korean, French) I want it to be reliable so my plan was to have a list > of unicode points only found in each given language [1], and use that to > return a high confidence answer. If none found, then have a list of high > frequency words for each language [2] and use that to return a lower > confidence answer. http://pear.php.net/package/Text_LanguageDetect Jan. -- Do you need professional PHP or Horde consulting? http://horde.org/consulting/