Text::Guess::Language - Guess language from text using top 1000 words
use Text::Guess::Language;
my $guessed_language = Text::Guess::Language->guess($text);
Text::Guess::Language matches the words in the text against lists of the top 1000 words in each of 58 different languages.
-
new()
Creates a new object which maintains internal storage areas for the Text::Guess::Language computation. Use one of these per concurrent Text::Guess::Language->guess() call.
-
guess($text)
Returns the language code with the most words found.
None by design.
Until release of version 1.00 the included methods, names of methods and their interfaces are subject to change.
Beginning with version 1.00 the specification will be stable, i.e. not changed between major versions.
http://github.com/wollmers/Text-Guess-Language
Helmut Wollmersdorfer helmut@wollmersdorfer.at
Copyright 2016-2020 Helmut Wollmersdorfer
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Text::Language::Guess