Download the PHP package pear/text_languagedetect without Composer
On this page you can find all versions of the php package pear/text_languagedetect. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pear/text_languagedetect
More information about pear/text_languagedetect
Files in pear/text_languagedetect
Package text_languagedetect
Short Description Identify human languages from text samples
License BSD-2-Clause
Homepage http://pear.php.net/package/Text_LanguageDetect
Informations about the package text_languagedetect
Text_LanguageDetect
PHP library to identify human languages from text samples. Returns confidence scores for each.
Installation
PEAR
$ pear install Text_LanguageDetect
Composer
$ composer require pear/text_languagedetect
Usage
Also see the examples in the docs/
directory and
the official documentation.
Language detection
Simple language detection:
Language code
Instead of returning the full language name, ISO 639-2 two and three letter codes can be returned:
Supported languages
- albanian
- arabic
- azeri
- bengali
- bulgarian
- cebuano
- croatian
- czech
- danish
- dutch
- english
- estonian
- farsi
- finnish
- french
- german
- hausa
- hawaiian
- hindi
- hungarian
- icelandic
- indonesian
- italian
- kazakh
- kyrgyz
- latin
- latvian
- lithuanian
- macedonian
- mongolian
- nepali
- norwegian
- pashto
- pidgin
- polish
- portuguese
- romanian
- russian
- serbian
- slovak
- slovene
- somali
- spanish
- swahili
- swedish
- tagalog
- turkish
- ukrainian
- urdu
- uzbek
- vietnamese
- welsh
Links
Homepage http://pear.php.net/package/Text_LanguageDetect Bug tracker http://pear.php.net/bugs/search.php?cmd=display&package_name[]=Text_LanguageDetect Documentation http://pear.php.net/package/Text_LanguageDetect/docs Unit test status https://travis-ci.org/pear/Text_LanguageDetect
Notes
Where are the data from?
I don't recall where I got the original data set. It's just the frequencies of 3-letter combinations in each supported language. It could be generated from a few random wikipedia pages from each language.