Martin Majlis > Lingua-Metadata-0.003 > Lingua::Metadata

Download:
Lingua-Metadata-0.003.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source   Latest Release: Lingua-Metadata-0.005

NAME ^

Lingua::Metadata - Returns information about languages.

VERSION ^

version 0.003

SYNOPSIS ^

METHODS ^

get_iso ($langage)

Returns an ISO 639-3 code for language.

Returns $iso

get_language_metadata ($langage)

Returns all metadata for specified language.

Examples

  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; 

Returns \%metadata = { key1 => value1, ... }

AUTHOR ^

Martin Majlis <martin@majlis.cz>

COPYRIGHT AND LICENSE ^

This software is Copyright (c) 2012 by Martin Majlis.

This is free software, licensed under:

  The (three-clause) BSD License
syntax highlighting: