Lingua::Metadata - Returns information about languages.
version 0.004
Returns an ISO 639-3 code for language.
It returns undef, if the service is down or undef is passed as an argument.
It returns empty string, if the language couldn't be converted.
It returns ISO 639-3 otherwise.
Returns all metadata for specified language.
my $ces_metadata = Lingua::Metadata::get_language_metadata("ces"); my $cs_metadata = Lingua::Metadata::get_language_metadata("cs"); my $czech_metadata = Lingua::Metadata::get_language_metadata("czech"); my $cestina_metadata = Lingua::Metadata::get_language_metadata("čeština"); ( $ces_metadata{'iso 639-3'} eq $cs_metadata{'iso 639-3'} and $cs_metadata{'iso 639-3'} eq $czech_metadata{'iso 639-3'} and $czech_metadata{'iso 639-3'} eq $cestina_metadata{'iso 639-3'} and $cestina_metadata{'iso 639-3'} eq 'ces' ) or die;
It returns reference to the hash containing all metadata.
Martin Majlis <martin@majlis.cz>
This software is Copyright (c) 2012 by Martin Majlis.
This is free software, licensed under:
The (three-clause) BSD License
To install Lingua::Metadata, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Lingua::Metadata
CPAN shell
perl -MCPAN -e shell install Lingua::Metadata
For more information on module installation, please visit the detailed CPAN module installation guide.