NAME
WebService::DetectLanguage::Result - a language detection result from detectlanguage.com
SYNOPSIS
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;
DESCRIPTION
This module is a class for data objects returned by the detect()
or multi_detect()
methods of WebService::DetectLanguage.
See the documentation of that module for more details.
ATTRIBUTES
language
An instance of WebService::DetectLanguage::Language, which provides the name
and code
for the identified language.
confidence
A confidence level for the result, which is a bit like a percentage, but can be higher than 100.
is_reliable
A boolean, which says whether this is a good guess.
SEE ALSO
WebService::DetectLanguage the main module for talking to the language detection API at detectlanguage.com.
AUTHOR
Neil Bowers <neilb@cpan.org>
LICENSE AND COPYRIGHT
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.