crodas / LanguageDetector

PHP Class to detect languages from any free text
320 stars 67 forks source link

Add CLI commands #16

Open andywer opened 9 years ago

andywer commented 9 years ago

Added a cli command for creating the language.php script (especially useful) and one for detecting the language of some text.

Additionally added a method detectLanguageScores to the Detect class that always returns the scrored language array (you cannot predict if the detect method returns a string or an array).

andywer commented 9 years ago

PS: Increasing the version number might make sense, too... ;)