- SEE ALSO
- LICENSE AND COPYRIGHT
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
multi_detect() methods of WebService::DetectLanguage.
See the documentation of that module for more details.
An instance of WebService::DetectLanguage::Language, which provides the
code for the identified language.
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 <firstname.lastname@example.org>
This software is copyright (c) 2019 by Neil Bowers <email@example.com>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.