language-detection
language-detection copied to clipboard
A language detection library for PHP. Detects the language from a given text string.
Currently we can use the `limit` function to return a specific quantity of languages: ```php $ld->detect('Mag het een onsje meer zijn?')->blacklist('af', 'dk', 'sv')->limit(0, 4)->close(); Array ( "nl" => 0.66193548387097 "br"...
Hello, Now, when we create a library, we can use following ways: 1. _new Language()_ - following directory will be used (by default): __DIR__ . '/../../resources/*/*.json'; 2. We use other...
Hi, The words "System Scaling Strategy" will return anything but English it seems. I've had West Frisian, Afrikaans and now Swedish as the "best result". This is the output of...
I want to get the language's full name with the code like when I get 'en'. I should be able to get 'English' as well.
Can you recommend any article data to train better? The default data is too small
### Discussed in https://github.com/patrickschur/language-detection/discussions/59 Originally posted by **marcovlesmes** February 2, 2024 Hi, I am trying to incorporate a new language in the library, I have already added a .txt file...
"Official online Businesses" ["result":"LanguageDetection\LanguageResult":private]=> array(116) { ["ia"]=> float(0.4827956989247312) ["en"]=> float(0.47832484436898703) ["la"]=> iso2 ia stands for "International Auxiliary Language Association" Did anybody needed to detect that languge in any project, ever?