Summary

  • RFC 1766, published in March 1995, gave language tags a visible internal structure — a primary tag plus hyphenated subtags — then told applications to treat the whole string as a single token. The divisions were administrative, not navigational.
  • ISO-derived codes, IANA registrations and private-use tags each held a different corner of the namespace, while the standard that used a tag decided what it meant for its information object.
  • Later matching rules (RFC 3066, RFC 3282, BCP 47) added explicit operations. None of them turned every hyphen in the 1995 grammar into a path, a menu or a promise about how software behaves.

The dash that looked like a breadcrumb

Stare at en-US for a few seconds and your brain quietly files it as a path: a folder called en, a subfolder called US. The instinct is so strong that in March 1995, when Harald Alvestrand published RFC 1766, he had to name it and then overrule it. A language tag, the memo said, is one token. The hyphens are a filing convention, not a staircase.

That single instruction is the whole story. The syntax invited a tree — one primary tag, then optional pieces hung off it by hyphens — and a reader could see the family resemblance in en-US, or notice that az-arabic and az-cyrillic shared an opening segment. The RFC planted a firm limit on the intuition: applications should treat the complete value as a single token. Its division into a main tag and subtags was an administrative mechanism, not a navigation aid.

The hyphen made the string readable without assigning every piece a universal behavior. The primary tag could hold one to eight letters; each subtag had the same ceiling. Whitespace was banned, and case changed nothing. Conventions might capitalize country codes or lowercase language codes, but RFC 1766 said those habits carried no meaning of their own.

The namespace was not a free-form list. Two-letter primary tags followed ISO 639. The primary value i was reserved for IANA-defined registrations; x opened private use, whose trailing subtags IANA would not register. Other primary values were held for a future revision. In the first subtag, two-letter codes followed ISO 3166 alpha-2, while three-to-eight-letter values could be registered with IANA. Later subtags could be registered too.

So the structure did two jobs that are easy to blur. It let people read a tag as a sequence, and it gave administrators a way to partition a namespace. It never said each segment should be walked like a directory. Nor did it establish that the same opening characters always meant the same thing to an application. The memo was explicit: the context-defining standard decided how a tag related to its information object.

Registration gave the pieces a public record

RFC 1766's examples ranged across country identification (en-US), dialect or variant (no-nynorsk, en-cockney), an IANA-defined language (i-cherokee) and script variants (az-arabic, az-cyrillic). Then came the caveat that keeps the examples honest: none of those subtags had actually been assigned. They illustrated the syntax, not a catalogue of available values.

For a value outside the predefined ISO assignments, a requester filled in a language-tag form — name, native name, published description, other details — and sent it to an open mailing list for a two-week review. A reviewer appointed by the IETF Applications Area Director could forward the request to IANA or reject it after significant objections; the decision could be appealed to the IESG. A shared spelling became legible to strangers through a public record, not because someone tacked another suffix onto a hyphen.

The mechanism was deliberately narrow in a second way: it registered identifiers and references, not an all-purpose user interface. A tag did not tell every consuming protocol whether to choose a representation, filter a library, select a route or draw a language menu. That behavior belonged to the context in which the tag was used.

A header could list languages; it still did not define the chooser

RFC 1766 also defined Content-Language, which could list one or more complete tags. For MIME multipart/alternative, it introduced a Differences parameter so a reader could tell apart alternatives that differed by content language. The memo explained why a reader might use language information when picking a body part — then left the choosing mechanism outside its scope.

That separation kept three questions apart: what string identifies the language of an object, which protocol element carries that string, and what a receiving application does with it. A language tag could sit in a content header; a container could declare that its alternatives differed by language; a particular reader still needed its own selection behavior. The RFC supplied the shared label and a point of attachment, not a universal navigation interface.

The later record sharpens the distinction. RFC 3066, published in 2001, extended the syntax to digits in subtags and introduced language-range matching. A range could match a complete tag or a prefix ending at a hyphen boundary. That was a defined matching operation. RFC 3282 later specified Content-Language and Accept-Language headers, including preferred language ranges and optional quality values. These additions created explicit protocol behavior around tags; they do not turn the original hyphen into a general path.

RFC 4646 in 2006 and RFC 5646 in 2009 carried the BCP 47 revision trail forward. The changes matter as evidence that grammar and registry rules evolved. They do not prove that any particular client parsed every value correctly, or that a tag automatically selected a page, a translation or a rendering. RFC 1766's lasting design lesson is narrower and more durable: a structured identifier can stay one indivisible application value while its segments serve administrative conventions.

Sources and limits

The specification is RFC 1766. The bounded revision trail is RFC 3066, RFC 3282, RFC 4646 and RFC 5646. They establish grammar, registration and later protocol changes; they do not establish universal implementation or deployment.