Releases: landrok/language-detector
Releases · landrok/language-detector
LanguageDetector 1.4.0
LanguageDetector 1.3.1
- Add strict mode for type declarations
- Remove support for PHP 7.0 and 7.1
- Thanks to @deevroman Fix fatal error when static detection with restricted subsets (#6)
LanguageDetector 1.3.0
Features
- Thanks to @crishoj Loaded models can be limited with an array of ISO codes :
$detector = new LanguageDetector(null, ['de', 'en', 'es', 'fr'])
; - LanguageDetector::getLanguages() returns an array of ISO codes. It's the list of models that are currently loaded and that will be evaluated.
- Static method detect() now accepts an array of ISO codes as a second parameter :
echo LanguageDetector::detect($text, ['de', 'en', 'es', 'fr']);
- Now supports PHP 7.4 and 8.0
LanguageDetector 1.2.0
Features
- LanguageDetector instance can be used as a string (__toString())
echo $detector;
prints ISO code - One line of code with the new detect() static method
echo LanguageDetector::detect($text);
- Library installation is blocked via composer if mbstring extension is not compiled.
- Now supports Klingon language
LanguageDetector 1.1.0
Features
- Add official support for PHP 7.1, 7.2 and 7.3
Deprecated
- Remove support for PHP 5
Documentation
- Add examples
LanguageDetector 1.0.2
Tests
- Improve exception tests
Licence
- Add license information in PHP files
Documentation
- Fix typos
LanguageDetector 1.0.1
Performance
- Execution time divided by 3
- A little bit less RAM consumption
Licence
- MIT licence
LanguageDetector 1.0.0
Features
- More than 50 supported languages
- Very fast, no database needed
- Packaged with a 2MB learned dataset
- N-grams algorithm
- Supports PHP 5.4, 5.5, 5.6, 7.0, 7.1 and HHVM