Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

0.06

  • Loading branch information...
commit 4ccd1795eecdb0918e4d0f6c0a7152319a81ff45 1 parent 7e2626f
@ambs authored
Showing with 12 additions and 2 deletions.
  1. +3 −0  Changes
  2. +9 −2 lib/Lingua/Identify/CLD.pm
View
3  Changes
@@ -1,5 +1,8 @@
Revision history for Lingua-Identify-CLD
+0.06 Thu Dec 6 11:59:37 WET 2012
+ - added is_reliable (thanks to Caine Tighe)
+
0.05 Fri Oct 12 17:47:43 WEST 2012
- added language-id and confidence output when in array context
(thanks to Joerg Tiedemann)
View
11 lib/Lingua/Identify/CLD.pm
@@ -12,11 +12,11 @@ Lingua::Identify::CLD - Interface to Chrome language detection library.
=head1 VERSION
-Version 0.05
+Version 0.06
=cut
-our $VERSION = '0.05';
+our $VERSION = '0.06';
use XSLoader;
BEGIN {
@@ -34,6 +34,13 @@ BEGIN {
# using TLD hint
my $lang = $cld->identify("Text", tld => 'by');
+ # obtaining further information
+ my @lang = $cld->identify("Text");
+ # $lang[0] -> language name
+ # $lang[1] -> language id
+ # $lang[2] -> confidence
+ # $lang[3] -> is_reliable (bool)
+
# CLD object can also be created with this option
my $bycld = Lingua::Identify::CLD->new(tld => 'by');
Please sign in to comment.
Something went wrong with that request. Please try again.