Here you'll find:
- An English-language description of how to choose language codes for MU2 C-CDA
- An AWK script that generates the complete list of languages in the value set
- The value set itself, with two tab-separated columns (Code, Language)
Here's the algorithm:
- Fetch the complete ISO-639-2 list as a starting point.
- Filter it to include only entries that have a 2-letter code.
- For each language in step 2, choose a 3-letter code as follows: If there is a "terminologic" 3-letter code (column 2) use that. Otherwise (if column 2 is empty), choose the "bibliographlic" 3-letter code (column 1).