Module: Linguistics::ISO639

Included in:
Linguistics
Defined in:
lib/linguistics/iso639.rb

Overview

A hash of International 2- and 3-letter ISO639-1 and ISO639-2 language codes information. Each entry is keyed by all of its language codes as Symbols, and the entry itself has three keys:

:codes

All of the codes known for this language as Strings

:eng_name

The English-language name of the language.

:fre_name

The French-language name of the language.

Entries for ‘ja’ and ‘en’:

irb > Linguistics::ISO639::LANGUAGE_CODES[:en]
 => {:eng_name=>"English", :fre_name=>"anglais", :codes=>["en", "eng"]}
irb > Linguistics::ISO639::LANGUAGE_CODES[:eng]
 => {:eng_name=>"English", :fre_name=>"anglais", :codes=>["en", "eng"]}
irb > Linguistics::ISO639::LANGUAGE_CODES[:ja]
 => {:eng_name=>"Japanese", :fre_name=>"japonais", :codes=>["ja", "jpn"]}

Constant Summary collapse

LANGUAGE_CODES =

Hash of ISO639 2- and 3-letter language codes

{}