wdmg / lingua-detect
Language detection by source text.
1.0.1
2020-05-06 23:23 UTC
Requires
- php: >=5.6
- ext-mbstring: *
Requires (Dev)
- phpunit/phpunit: ~4.8
- satooshi/php-coveralls: ~1.0
This package is auto-updated.
Last update: 2024-10-07 09:01:28 UTC
README
LinguaDetect
Language detection by source text.
Based on alphabets and language recognition chart. It describes a variety of simple clues one can use to determine what language a document is written in with high accuracy. See more [https://en.wikipedia.org/wiki/Wikipedia:Language_recognition_chart]
Support en
, ru
, uk
, fr
, es
, de
, it
, pl
, hu
, el
locales.
Requirements
- PHP 5.6 or higher
Installation
To install the library, run the following command in the console:
$ composer require "wdmg/lingua-detect"
Usage
<?php
$text = 'Chicago has many historic places to visit. Keith found the Chicago Water Tower impressive as it is one
of the few remaining landmarks to have survived the Great Chicago Fire of 1871.';
$detector = new LinguaDetect();
print $detector->process($text);
?>
Status and version [ready to use]
- v.1.0.1 - Added namespace
- v.1.0.0 - Added LinguaDetect() class
Copyrights
- Copyright (c) 2020 W.D.M.Group, Ukraine (https://wdmg.com.ua/)
- Copyright (c) 2020 by Alexsander Vyshnyvetskyy alex.vyshnyvetskyy@gmail.com