Skip to content
ISO 639-2 code · ISO 639-2 language codes

The zxx language code: no linguistic content, and when to use it

Published Formatory editorial team
http://id.loc.gov/vocabulary/iso639-2/zxx

No linguistic content; Not applicable

zxx is a special code of ISO 639-2 with no ISO 639-1 equivalent; the same code is used unchanged in ISO 639-3 and in BCP 47 language tags.

A silent film, a set of satellite images, a string quartet without vocals: each of these is a resource that a metadata schema still asks a language question about. ISO 639-2 answers with zxx, the code for No linguistic content; Not applicable. It is one of a handful of special codes in the list that do not name a language at all; they describe the language situation of a resource.

Where zxx sits among the special codes

The Library of Congress maintains ISO 639-2 and publishes each code as a URI under id.loc.gov, so zxx resolves at http://id.loc.gov/vocabulary/iso639-2/zxx. Next to it are three related special codes that catalogers confuse often enough that it helps to set them side by side:

  • und, Undetermined: there is language, but it has not been identified.
  • mul, Multiple languages: several languages, typically too many to list one by one.
  • mis, Uncoded languages: a known language that has no code of its own in ISO 639-2.
  • zxx: no language present, or the question does not apply.

The test is simple. If a person listening, reading or looking at the resource would encounter words, zxx is wrong. A scanned map with place names has language; a landscape photograph has none. A data table with column headings has language, however little; a binary instrument dump does not.

The same code is used unchanged in ISO 639-3 and is registered as a primary subtag in the IANA language subtag registry, so zxx is also a valid tag under BCP 47 (RFC 5646). There is no two-letter ISO 639-1 form.

Recording it in library and Dublin Core metadata

In MARC 21 bibliographic records, the language positions of field 008 (characters 35–37) take zxx for nonmusical sound recordings without speech, instrumental music and most still images. Field 041 is normally left out when the 008 value is zxx, since there is nothing to break down.

In Dublin Core, zxx goes into dc:language or dcterms:language. Simple Dublin Core takes it as a plain string; in linked data the Library of Congress URI gives a resolvable value that other systems can match without parsing text. Profiles that declare the vocabulary as ISO 639-2 language codes accept zxx as a regular member of the list.

When the field should simply stay empty

Some schemas make language optional. Leaving it blank and setting zxx are not equivalent: an empty field means unknown or not recorded, which is the meaning of und in a mandatory field. zxx is a positive statement that a cataloger checked and found no language. In preservation repositories that difference matters, because migration and access tools use the language field to decide whether to run text extraction, OCR or speech recognition on a file.

Mistakes seen in real records

The most common one is coding a song with lyrics as zxx because it is “music”. Vocal music takes the language of the words. Another is using zxx for software and source code. Programming languages are not natural languages in ISO 639-2, so a code repository is usually described by the language of its documentation and comments, while the programming language goes into a format or subject field. A third mistake is writing the code in uppercase (ZXX); ISO 639 codes are lowercase, and strict validators reject the variant.

For locally defined situations that zxx, und, mul and mis do not cover, the reserved range qaa–qtz exists, though it is a poor choice for anything that leaves the institution.

Example in RDF

@prefix dcterms: <http://purl.org/dc/terms/> .

<https://example.org/audio/string-quartet-op2.flac>
    dcterms:title "String quartet in D, second movement" ;
    dcterms:type <http://purl.org/dc/dcmitype/Sound> ;
    dcterms:language <http://id.loc.gov/vocabulary/iso639-2/zxx> .

Questions about zxx

What does the language code zxx mean?

zxx stands for "No linguistic content; Not applicable". It tells a catalog or a search system that the resource contains no language at all, as with an instrumental recording, a photograph without captions or a raw sensor data file, so no language-based processing applies.

Is zxx the same as und?

No. und (Undetermined) means there is language in the resource but nobody has identified which one. zxx means there is no language to identify. Mixing them up hides real text from translation and language-filter workflows, or flags silent material for review it does not need.

Can zxx be used in an HTML lang attribute?

Yes. zxx is a valid BCP 47 primary language subtag, so lang="zxx" is legal markup. It is useful on elements such as decorative glyph strings or code fragments that a screen reader or hyphenation engine should not treat as words in the page language.

Should a music recording with lyrics get zxx?

No. Sung or spoken words are linguistic content, so the record takes the code of the language sung, for example ita for an Italian opera. zxx applies only when the recording is purely instrumental or the vocal part carries no words.

Does zxx exist in ISO 639-1?

No. ISO 639-1 has only two-letter codes for individual languages and contains none of the special codes. Systems that store two-letter codes need a separate convention for no-language material, which is one reason many registries keep the three-letter form.

More from ISO 639-2 language codes

All 17 in this group