Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (14 sloc) 856 Bytes

= MARC language codes

A tiny Ruby library that makes it easier to deal with data that uses MARC langauge codes. For details, see Wikipedia entry on "MARC standards":


API is very simple. Lookup language name by language code like so:

MARC::LanguageCodes.lookup("eng") # => English MARC::LanguageCodes.lookup("ita") # => Italian MARC::LanguageCodes.lookup("rus") # => Russian

MARC has a list of discontinued language codes, and by default MARC::LanguageCodes.lookup includes those. If you want just current list, use MARC::LanguageCodes.lookup_current.

Language lookup tables were generated from, so make sure you understand that before you send any pull requests.

== Copyright

Copyright (c) 2009 Michael S. Klishin. See LICENSE for details.

Jump to Line
Something went wrong with that request. Please try again.