language codes
1.0.0A small library mapping language codes to language names.
Table of Contents
About Language-Codes
This is a small library providing the ISO-639 language code to language name mapping.
How To
After loading the library, simply use names to retrieve the list of known names for a language code.
(language-codes:names :eng) ; => ("English")
(language-codes:names :ht) ; => ("Haitian" "Haitian Creole")
You can also perform the inverse lookup, by codes.
(language-codes:codes "english") ; => (:ENG :EN)
System Information
Definition Index
-
LANGUAGE-CODES
- ORG.SHIRAKUMO.LANGUAGE-CODES
No documentation provided.-
EXTERNAL FUNCTION LOAD-CODE-MAP
- FILE
Load a code map file. The file should be composed of s-expressions of the following format: FILE ::= ENTRY* ENTRY ::= (CODE NAME*) CODE --- A string of the two- or three-letter code NAME --- A string for a human-readable name of the language this code identifies. See NAMES -
EXTERNAL GENERIC-FUNCTION CODES
- LANGUAGE
Returns the list of known codes for the given language. The language is matched case-insensitively. See NAMES
-
EXTERNAL GENERIC-FUNCTION NAMES
- CODE
Accessor to the list of English language names for the given language code. The code can be either a string or keyword of the two- or three-letter ISO 639 codes. By default codes for ISO-639-1 and ISO-639-3 are loaded in. You can use this function to define your own code mappings if necessary. See https://www.loc.gov/standards/iso639-2/php/English_list.php See https://iso639-3.sil.org/ See CODES
-
EXTERNAL GENERIC-FUNCTION (SETF NAMES)
- NAMES
- CODE
No documentation provided.