Module:family tree/etymology languages/documentation

From Wiktionary, the free dictionary
Jump to navigation Jump to search

Creates a version of Module:etymology languages/data in which there is just one code per language. Codes that have the same language data are reduced to the most language-codiest one. For instance, Austrian German has three codes (Austrian German, AG., de-AT) by which it can be accessed in etymology templates like {{cog}}. de-AT is chosen as the only language code for Austrian German because it looks the most like a language code.

The following criteria are used successively to weed out candidates for language-codiest code:

  1. The code must consist of letters and hyphens.
  2. The code must not contain an uppercase letter followed by a lowercase letter.
  3. The code must be as short as possible.

This list shows those etymology languages that have multiple codes, together with the code chosen by this module and the other codes: