WebService::DetectLanguage::Result - a language detection result from detectlanguage.com
my ($result) = $api->detect($text); printf "language = %s (%s)\n", $result->language->name, $result->language->code; printf "reliable = %s\n", $result->is_reliable ? 'Yes' : 'No'; printf "confidence = %f\n", $result->confidence;
This module is a class for data objects returned by the detect() or multi_detect() methods of WebService::DetectLanguage.
detect()
multi_detect()
See the documentation of that module for more details.
An instance of WebService::DetectLanguage::Language, which provides the name and code for the identified language.
name
code
A confidence level for the result, which is a bit like a percentage, but can be higher than 100.
A boolean, which says whether this is a good guess.
WebService::DetectLanguage the main module for talking to the language detection API at detectlanguage.com.
Neil Bowers <neilb@cpan.org>
This software is copyright (c) 2019 by Neil Bowers <neilb@cpan.org>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install WebService::DetectLanguage, copy and paste the appropriate command in to your terminal.
cpanm
cpanm WebService::DetectLanguage
CPAN shell
perl -MCPAN -e shell install WebService::DetectLanguage
For more information on module installation, please visit the detailed CPAN module installation guide.