Module:family tree/etymology languages/documentation
Appearance
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:
- The code must consist of letters and hyphens.
- The code must not contain an uppercase letter followed by a lowercase letter.
- 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: