Skip to content

Releases: landrok/language-detector

LanguageDetector 1.4.0

18 Dec 21:55
Compare
Choose a tag to compare
  • Switch CI to Github actions
  • Remove dead code
  • Add support for PHP 8.2 and 8.3
  • Remove support for PHP 7.2 and 7.3

LanguageDetector 1.3.1

09 Apr 12:18
Compare
Choose a tag to compare
  • 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

26 Sep 13:08
Compare
Choose a tag to compare

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

15 Dec 18:15
Compare
Choose a tag to compare

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

11 Dec 19:14
Compare
Choose a tag to compare

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

18 Jan 21:10
Compare
Choose a tag to compare

Tests

  • Improve exception tests

Licence

  • Add license information in PHP files

Documentation

  • Fix typos

LanguageDetector 1.0.1

03 Dec 13:52
Compare
Choose a tag to compare

Performance

  • Execution time divided by 3
  • A little bit less RAM consumption

Licence

  • MIT licence

LanguageDetector 1.0.0

02 Nov 06:09
Compare
Choose a tag to compare

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