CINXE.COM

Abstract Wikipedia/Representation of languages - Meta

<!DOCTYPE html> <html class="client-nojs vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-disabled skin-theme-clientpref-day vector-toc-available" lang="en" dir="ltr"> <head> <meta charset="UTF-8"> <title>Abstract Wikipedia/Representation of languages - Meta</title> <script>(function(){var className="client-js vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-sticky-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-feature-night-mode-disabled skin-theme-clientpref-day vector-toc-available";var cookie=document.cookie.match(/(?:^|; )metawikimwclientpreferences=([^;]+)/);if(cookie){cookie[1].split('%2C').forEach(function(pref){className=className.replace(new RegExp('(^| )'+pref.replace(/-clientpref-\w+$|[^\w-]+/g,'')+'-clientpref-\\w+( |$)'),'$1'+pref+'$2');});}document.documentElement.className=className;}());RLCONF={"wgBreakFrames":false,"wgSeparatorTransformTable":["",""],"wgDigitTransformTable":["",""],"wgDefaultDateFormat": "dmy","wgMonthNames":["","January","February","March","April","May","June","July","August","September","October","November","December"],"wgRequestId":"ae56f4c3-44fd-4abf-a9d9-4b8f428bdf37","wgCanonicalNamespace":"","wgCanonicalSpecialPageName":false,"wgNamespaceNumber":0,"wgPageName":"Abstract_Wikipedia/Representation_of_languages","wgTitle":"Abstract Wikipedia/Representation of languages","wgCurRevisionId":23785995,"wgRevisionId":23785995,"wgArticleId":11286147,"wgIsArticle":true,"wgIsRedirect":false,"wgAction":"view","wgUserName":null,"wgUserGroups":["*"],"wgCategories":["Drafts","Abstract Wikipedia/Notes"],"wgPageViewLanguage":"en","wgPageContentLanguage":"en","wgPageContentModel":"wikitext","wgRelevantPageName":"Abstract_Wikipedia/Representation_of_languages","wgRelevantArticleId":11286147,"wgIsProbablyEditable":true,"wgRelevantPageIsProbablyEditable":true,"wgRestrictionEdit":[],"wgRestrictionMove":[],"wgNoticeProject":"meta","wgCiteReferencePreviewsActive":false, "wgMediaViewerOnClick":true,"wgMediaViewerEnabledByDefault":true,"wgVisualEditor":{"pageLanguageCode":"en","pageLanguageDir":"ltr","pageVariantFallbacks":"en"},"wgMFDisplayWikibaseDescriptions":{"search":true,"watchlist":true,"tagline":false,"nearby":true},"wgWMESchemaEditAttemptStepOversample":false,"wgWMEPageLength":9000,"wgInternalRedirectTargetUrl":"/wiki/Abstract_Wikipedia/Representation_of_languages","wgTranslatePageTranslation":"source","wgEditSubmitButtonLabelPublish":true,"wgDiscussionToolsFeaturesEnabled":{"replytool":true,"newtopictool":true,"sourcemodetoolbar":true,"topicsubscription":false,"autotopicsub":false,"visualenhancements":false,"visualenhancements_reply":false,"visualenhancements_pageframe":false},"wgDiscussionToolsFallbackEditMode":"source","wgULSPosition":"personal","wgULSisCompactLinksEnabled":false,"wgVector2022LanguageInHeader":true,"wgULSisLanguageSelectorEmpty":false,"wgCheckUserClientHintsHeadersJsApi":["brands","architecture","bitness","fullVersionList", "mobile","model","platform","platformVersion"]};RLSTATE={"ext.globalCssJs.user.styles":"ready","site.styles":"ready","user.styles":"ready","ext.globalCssJs.user":"ready","user":"ready","user.options":"loading","ext.translate.tag.languages":"ready","ext.pygments":"ready","ext.discussionTools.init.styles":"ready","oojs-ui-core.styles":"ready","oojs-ui.styles.indicators":"ready","mediawiki.widgets.styles":"ready","oojs-ui-core.icons":"ready","skins.vector.search.codex.styles":"ready","skins.vector.styles":"ready","skins.vector.icons":"ready","ext.translate.edit.documentation.styles":"ready","ext.translate":"ready","ext.wikimediamessages.styles":"ready","ext.visualEditor.desktopArticleTarget.noscript":"ready","ext.uls.pt":"ready","wikibase.client.init":"ready","ext.wikimediaBadges":"ready"};RLPAGEMODULES=["mediawiki.action.view.redirect","ext.pygments.view","site","mediawiki.page.ready","mediawiki.toc","skins.vector.js","ext.centralNotice.geoIP","ext.centralNotice.startUp", "ext.translate.pagetranslation.uls","ext.gadget.AddTopic","ext.gadget.formWizard","ext.gadget.ReferenceTooltips","ext.gadget.WishlistTranslation","ext.urlShortener.toolbar","ext.centralauth.centralautologin","mmv.bootstrap","ext.visualEditor.desktopArticleTarget.init","ext.visualEditor.targetLoader","ext.echo.centralauth","ext.discussionTools.init","ext.eventLogging","ext.wikimediaEvents","ext.navigationTiming","ext.uls.interface","ext.checkUser.clientHints"];</script> <script>(RLQ=window.RLQ||[]).push(function(){mw.loader.impl(function(){return["user.options@12s5i",function($,jQuery,require,module){mw.user.tokens.set({"patrolToken":"+\\","watchToken":"+\\","csrfToken":"+\\"}); }];});});</script> <link rel="stylesheet" href="/w/load.php?lang=en&amp;modules=ext.discussionTools.init.styles%7Cext.pygments%2Ctranslate%2CwikimediaBadges%7Cext.translate.edit.documentation.styles%7Cext.translate.tag.languages%7Cext.uls.pt%7Cext.visualEditor.desktopArticleTarget.noscript%7Cext.wikimediamessages.styles%7Cmediawiki.widgets.styles%7Coojs-ui-core.icons%2Cstyles%7Coojs-ui.styles.indicators%7Cskins.vector.icons%2Cstyles%7Cskins.vector.search.codex.styles%7Cwikibase.client.init&amp;only=styles&amp;skin=vector-2022"> <script async="" src="/w/load.php?lang=en&amp;modules=startup&amp;only=scripts&amp;raw=1&amp;skin=vector-2022"></script> <meta name="ResourceLoaderDynamicStyles" content=""> <link rel="stylesheet" href="/w/load.php?lang=en&amp;modules=site.styles&amp;only=styles&amp;skin=vector-2022"> <meta name="generator" content="MediaWiki 1.44.0-wmf.5"> <meta name="referrer" content="origin"> <meta name="referrer" content="origin-when-cross-origin"> <meta name="robots" content="max-image-preview:standard"> <meta name="format-detection" content="telephone=no"> <meta name="viewport" content="width=1120"> <meta property="og:title" content="Abstract Wikipedia/Representation of languages - Meta"> <meta property="og:type" content="website"> <link rel="preconnect" href="//upload.wikimedia.org"> <link rel="alternate" media="only screen and (max-width: 640px)" href="//meta.m.wikimedia.org/wiki/Abstract_Wikipedia/Representation_of_languages"> <link rel="alternate" type="application/x-wiki" title="Edit" href="/w/index.php?title=Abstract_Wikipedia/Representation_of_languages&amp;action=edit"> <link rel="icon" href="/static/favicon/community.ico"> <link rel="search" type="application/opensearchdescription+xml" href="/w/rest.php/v1/search" title="Meta (en)"> <link rel="EditURI" type="application/rsd+xml" href="//meta.wikimedia.org/w/api.php?action=rsd"> <link rel="canonical" href="https://meta.wikimedia.org/wiki/Abstract_Wikipedia/Representation_of_languages"> <link rel="license" href="https://creativecommons.org/licenses/by-sa/4.0/"> <link rel="alternate" type="application/atom+xml" title="Meta Atom feed" href="/w/index.php?title=Special:RecentChanges&amp;feed=atom"> <link rel="dns-prefetch" href="//login.wikimedia.org"> </head> <body class="ext-discussiontools-replytool-enabled ext-discussiontools-newtopictool-enabled ext-discussiontools-sourcemodetoolbar-enabled skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject mw-editable page-Abstract_Wikipedia_Representation_of_languages rootpage-Abstract_Wikipedia skin-vector-2022 action-view"><a class="mw-jump-link" href="#bodyContent">Jump to content</a> <div class="vector-header-container"> <header class="vector-header mw-header"> <div class="vector-header-start"> <nav class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-dropdown" class="vector-dropdown vector-main-menu-dropdown vector-button-flush-left vector-button-flush-right" > <input type="checkbox" id="vector-main-menu-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-main-menu-dropdown" class="vector-dropdown-checkbox " aria-label="Main menu" > <label id="vector-main-menu-dropdown-label" for="vector-main-menu-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-menu mw-ui-icon-wikimedia-menu"></span> <span class="vector-dropdown-label-text">Main menu</span> </label> <div class="vector-dropdown-content"> <div id="vector-main-menu-unpinned-container" class="vector-unpinned-container"> <div id="vector-main-menu" class="vector-main-menu vector-pinnable-element"> <div class="vector-pinnable-header vector-main-menu-pinnable-header vector-pinnable-header-unpinned" data-feature-name="main-menu-pinned" data-pinnable-element-id="vector-main-menu" data-pinned-container-id="vector-main-menu-pinned-container" data-unpinned-container-id="vector-main-menu-unpinned-container" > <div class="vector-pinnable-header-label">Main menu</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-main-menu.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-main-menu.unpin">hide</button> </div> <div id="p-navigation" class="vector-menu mw-portlet mw-portlet-navigation" > <div class="vector-menu-heading"> Navigation </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-mainpage-description" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Main_Page" title="Visit the main page [z]" accesskey="z"><span>Main page</span></a></li><li id="n-wikimedia-news-label" class="mw-list-item"><a href="/wiki/Wikimedia_News"><span>Wikimedia News</span></a></li><li id="n-translations-text" class="mw-list-item"><a href="/wiki/Special:LanguageStats"><span>Translations</span></a></li><li id="n-recentchanges" class="mw-list-item"><a href="/wiki/Special:RecentChanges" title="A list of recent changes in the wiki [r]" accesskey="r"><span>Recent changes</span></a></li><li id="n-randompage" class="mw-list-item"><a href="/wiki/Special:Random" title="Load a random page [x]" accesskey="x"><span>Random page</span></a></li><li id="n-help" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Help:Help" title="The place to find out"><span>Help</span></a></li><li id="n-Babel-text" class="mw-list-item"><a href="/wiki/Meta:Babel"><span>Babel</span></a></li> </ul> </div> </div> <div id="p-community" class="vector-menu mw-portlet mw-portlet-community" > <div class="vector-menu-heading"> Community </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-WikimediaResourceCenter-text" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Wikimedia_Resource_Center"><span>Wikimedia Resource Center</span></a></li><li id="n-WikimediaForum-text" class="mw-list-item"><a href="/wiki/Wikimedia_Forum"><span>Wikimedia Forum</span></a></li><li id="n-mailinglists-text" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Mailing_lists/Overview"><span>Mailing lists</span></a></li><li id="n-Requests-text" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Meta:Requests_and_proposals"><span>Requests</span></a></li><li id="n-Babylon-text" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Meta:Babylon"><span>Babylon</span></a></li><li id="n-Reports-text" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Wikimedia_Affiliates_Data_Portal"><span>Reports</span></a></li><li id="n-Research-text" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Research:Index"><span>Research</span></a></li><li id="n-planet" class="mw-list-item"><a href="//en.planet.wikimedia.org/" title="Weblog aggregator of Wikimedia-related posts"><span>Planet Wikimedia</span></a></li> </ul> </div> </div> <div id="p-beyond_the_web" class="vector-menu mw-portlet mw-portlet-beyond_the_web" > <div class="vector-menu-heading"> Beyond the Web </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="n-Meetup-text" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Meetup"><span>Meet Wikimedians</span></a></li><li id="n-Events-text" class="mw-list-item"><a href="/wiki/Events"><span>Events</span></a></li><li id="n-wikimedia-movement-affiliates-shortlabel" class="mw-list-item"><a href="/wiki/Special:MyLanguage/Wikimedia_movement_affiliates"><span>Movement affiliates</span></a></li> </ul> </div> </div> </div> </div> </div> </div> </nav> <a href="/wiki/Special:MyLanguage/Main_Page" class="mw-logo"> <img class="mw-logo-icon" src="/static/images/icons/metawiki.svg" alt="" aria-hidden="true" height="50" width="50"> <span class="mw-logo-container skin-invert"> <img class="mw-logo-wordmark" alt="Wikimedia Meta-Wiki" src="/static/images/mobile/copyright/metawiki-wordmark.svg" style="width: 7.5em; height: 1.8125em;"> </span> </a> </div> <div class="vector-header-end"> <div id="p-search" role="search" class="vector-search-box-vue vector-search-box-collapses vector-search-box-show-thumbnail vector-search-box-auto-expand-width vector-search-box"> <a href="/wiki/Special:Search" class="cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only search-toggle" title="Search Meta [f]" accesskey="f"><span class="vector-icon mw-ui-icon-search mw-ui-icon-wikimedia-search"></span> <span>Search</span> </a> <div class="vector-typeahead-search-container"> <div class="cdx-typeahead-search cdx-typeahead-search--show-thumbnail cdx-typeahead-search--auto-expand-width"> <form action="/w/index.php" id="searchform" class="cdx-search-input cdx-search-input--has-end-button"> <div id="simpleSearch" class="cdx-search-input__input-wrapper" data-search-loc="header-moved"> <div class="cdx-text-input cdx-text-input--has-start-icon"> <input class="cdx-text-input__input" type="search" name="search" placeholder="Search Meta" aria-label="Search Meta" autocapitalize="sentences" title="Search Meta [f]" accesskey="f" id="searchInput" > <span class="cdx-text-input__icon cdx-text-input__start-icon"></span> </div> <input type="hidden" name="title" value="Special:Search"> </div> <button class="cdx-button cdx-search-input__end-button">Search</button> </form> </div> </div> </div> <nav class="vector-user-links vector-user-links-wide" aria-label="Personal tools"> <div class="vector-user-links-main"> <div id="p-vector-user-menu-preferences" class="vector-menu mw-portlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-uls" class="mw-list-item active user-links-collapsible-item"><a data-mw="interface" href="#" class="uls-trigger cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet"><span class="vector-icon mw-ui-icon-wikimedia-language mw-ui-icon-wikimedia-wikimedia-language"></span> <span>English</span></a> </li> </ul> </div> </div> <div id="p-vector-user-menu-userpage" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-dropdown" class="vector-dropdown " title="Change the appearance of the page&#039;s font size, width, and color" > <input type="checkbox" id="vector-appearance-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-appearance-dropdown" class="vector-dropdown-checkbox " aria-label="Appearance" > <label id="vector-appearance-dropdown-label" for="vector-appearance-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-appearance mw-ui-icon-wikimedia-appearance"></span> <span class="vector-dropdown-label-text">Appearance</span> </label> <div class="vector-dropdown-content"> <div id="vector-appearance-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <div id="p-vector-user-menu-notifications" class="vector-menu mw-portlet emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> <div id="p-vector-user-menu-overflow" class="vector-menu mw-portlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="//donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&amp;utm_medium=sidebar&amp;utm_campaign=C13_meta.wikimedia.org&amp;uselang=en" class=""><span>Donate</span></a> </li> <li id="pt-createaccount-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:CreateAccount&amp;returnto=Abstract+Wikipedia%2FRepresentation+of+languages" title="You are encouraged to create an account and log in; however, it is not mandatory" class=""><span>Create account</span></a> </li> <li id="pt-login-2" class="user-links-collapsible-item mw-list-item user-links-collapsible-item"><a data-mw="interface" href="/w/index.php?title=Special:UserLogin&amp;returnto=Abstract+Wikipedia%2FRepresentation+of+languages" title="You are encouraged to log in; however, it is not mandatory [o]" accesskey="o" class=""><span>Log in</span></a> </li> </ul> </div> </div> </div> <div id="vector-user-links-dropdown" class="vector-dropdown vector-user-menu vector-button-flush-right vector-user-menu-logged-out user-links-collapsible-item" title="More options" > <input type="checkbox" id="vector-user-links-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-user-links-dropdown" class="vector-dropdown-checkbox " aria-label="Personal tools" > <label id="vector-user-links-dropdown-label" for="vector-user-links-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-ellipsis mw-ui-icon-wikimedia-ellipsis"></span> <span class="vector-dropdown-label-text">Personal tools</span> </label> <div class="vector-dropdown-content"> <div id="p-personal" class="vector-menu mw-portlet mw-portlet-personal user-links-collapsible-item" title="User menu" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="pt-sitesupport" class="user-links-collapsible-item mw-list-item"><a href="//donate.wikimedia.org/wiki/Special:FundraiserRedirector?utm_source=donate&amp;utm_medium=sidebar&amp;utm_campaign=C13_meta.wikimedia.org&amp;uselang=en"><span>Donate</span></a></li><li id="pt-createaccount" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:CreateAccount&amp;returnto=Abstract+Wikipedia%2FRepresentation+of+languages" title="You are encouraged to create an account and log in; however, it is not mandatory"><span class="vector-icon mw-ui-icon-userAdd mw-ui-icon-wikimedia-userAdd"></span> <span>Create account</span></a></li><li id="pt-login" class="user-links-collapsible-item mw-list-item"><a href="/w/index.php?title=Special:UserLogin&amp;returnto=Abstract+Wikipedia%2FRepresentation+of+languages" title="You are encouraged to log in; however, it is not mandatory [o]" accesskey="o"><span class="vector-icon mw-ui-icon-logIn mw-ui-icon-wikimedia-logIn"></span> <span>Log in</span></a></li> </ul> </div> </div> </div> </div> </nav> </div> </header> </div> <div class="mw-page-container"> <div class="mw-page-container-inner"> <div class="vector-sitenotice-container"> <div id="siteNotice"><!-- CentralNotice --></div> </div> <div class="vector-column-start"> <div class="vector-main-menu-container"> <div id="mw-navigation"> <nav id="mw-panel" class="vector-main-menu-landmark" aria-label="Site"> <div id="vector-main-menu-pinned-container" class="vector-pinned-container"> </div> </nav> </div> </div> <div class="vector-sticky-pinned-container"> <nav id="mw-panel-toc" aria-label="Contents" data-event-name="ui.sidebar-toc" class="mw-table-of-contents-container vector-toc-landmark"> <div id="vector-toc-pinned-container" class="vector-pinned-container"> <div id="vector-toc" class="vector-toc vector-pinnable-element"> <div class="vector-pinnable-header vector-toc-pinnable-header vector-pinnable-header-pinned" data-feature-name="toc-pinned" data-pinnable-element-id="vector-toc" > <h2 class="vector-pinnable-header-label">Contents</h2> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-toc.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-toc.unpin">hide</button> </div> <ul class="vector-toc-contents" id="mw-panel-toc-list"> <li id="toc-mw-content-text" class="vector-toc-list-item vector-toc-level-1"> <a href="#" class="vector-toc-link"> <div class="vector-toc-text">Beginning</div> </a> </li> <li id="toc-Language_objects" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Language_objects"> <div class="vector-toc-text"> <span class="vector-toc-numb">1</span> <span>Language objects</span> </div> </a> <button aria-controls="toc-Language_objects-sublist" class="cdx-button cdx-button--weight-quiet cdx-button--icon-only vector-toc-toggle"> <span class="vector-icon mw-ui-icon-wikimedia-expand"></span> <span>Toggle Language objects subsection</span> </button> <ul id="toc-Language_objects-sublist" class="vector-toc-list"> <li id="toc-Advantages_of_objects_over_codes" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Advantages_of_objects_over_codes"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.1</span> <span>Advantages of objects over codes</span> </div> </a> <ul id="toc-Advantages_of_objects_over_codes-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Advantages_of_code_over_objects" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Advantages_of_code_over_objects"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.2</span> <span>Advantages of code over objects</span> </div> </a> <ul id="toc-Advantages_of_code_over_objects-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Language_names" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Language_names"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.3</span> <span>Language names</span> </div> </a> <ul id="toc-Language_names-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-BCP_47_mappings" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#BCP_47_mappings"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.4</span> <span>BCP 47 mappings</span> </div> </a> <ul id="toc-BCP_47_mappings-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Language_fallback" class="vector-toc-list-item vector-toc-level-2"> <a class="vector-toc-link" href="#Language_fallback"> <div class="vector-toc-text"> <span class="vector-toc-numb">1.5</span> <span>Language fallback</span> </div> </a> <ul id="toc-Language_fallback-sublist" class="vector-toc-list"> </ul> </li> </ul> </li> <li id="toc-Lists_of_languages" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Lists_of_languages"> <div class="vector-toc-text"> <span class="vector-toc-numb">2</span> <span>Lists of languages</span> </div> </a> <ul id="toc-Lists_of_languages-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Initial_list_of_languages" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Initial_list_of_languages"> <div class="vector-toc-text"> <span class="vector-toc-numb">3</span> <span>Initial list of languages</span> </div> </a> <ul id="toc-Initial_list_of_languages-sublist" class="vector-toc-list"> </ul> </li> <li id="toc-Assigning_ZIDs" class="vector-toc-list-item vector-toc-level-1 vector-toc-list-item-expanded"> <a class="vector-toc-link" href="#Assigning_ZIDs"> <div class="vector-toc-text"> <span class="vector-toc-numb">4</span> <span>Assigning ZIDs</span> </div> </a> <ul id="toc-Assigning_ZIDs-sublist" class="vector-toc-list"> </ul> </li> </ul> </div> </div> </nav> </div> </div> <div class="mw-content-container"> <main id="content" class="mw-body"> <header class="mw-body-header vector-page-titlebar"> <nav aria-label="Contents" class="vector-toc-landmark"> <div id="vector-page-titlebar-toc" class="vector-dropdown vector-page-titlebar-toc vector-button-flush-left" > <input type="checkbox" id="vector-page-titlebar-toc-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-titlebar-toc" class="vector-dropdown-checkbox " aria-label="Toggle the table of contents" > <label id="vector-page-titlebar-toc-label" for="vector-page-titlebar-toc-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--icon-only " aria-hidden="true" ><span class="vector-icon mw-ui-icon-listBullet mw-ui-icon-wikimedia-listBullet"></span> <span class="vector-dropdown-label-text">Toggle the table of contents</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-titlebar-toc-unpinned-container" class="vector-unpinned-container"> </div> </div> </div> </nav> <h1 id="firstHeading" class="firstHeading mw-first-heading"><span class="mw-page-title-main">Abstract Wikipedia/Representation of languages</span></h1> <div id="p-lang-btn" class="vector-dropdown mw-portlet mw-portlet-lang" > <input type="checkbox" id="p-lang-btn-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-p-lang-btn" class="vector-dropdown-checkbox mw-interlanguage-selector" aria-label="This article exist only in this language. Add the article for other languages" > <label id="p-lang-btn-label" for="p-lang-btn-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet cdx-button--action-progressive mw-portlet-lang-heading-0" aria-hidden="true" ><span class="vector-icon mw-ui-icon-language-progressive mw-ui-icon-wikimedia-language-progressive"></span> <span class="vector-dropdown-label-text">Add languages</span> </label> <div class="vector-dropdown-content"> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> <div class="after-portlet after-portlet-lang"><span class="wb-langlinks-add wb-langlinks-link"><a href="https://www.wikidata.org/wiki/Special:NewItem?site=metawiki&amp;page=Abstract+Wikipedia%2FRepresentation+of+languages" title="Add interlanguage links" class="wbc-editpage">Add links</a></span></div> </div> </div> </div> </header> <div class="vector-page-toolbar"> <div class="vector-page-toolbar-container"> <div id="left-navigation"> <nav aria-label="Namespaces"> <div id="p-associated-pages" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-associated-pages" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-nstab-main" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Abstract_Wikipedia/Representation_of_languages" title="View the content page [c]" accesskey="c"><span>Content page</span></a></li><li id="ca-talk" class="vector-tab-noicon mw-list-item"><a href="/wiki/Talk:Abstract_Wikipedia/Representation_of_languages" rel="discussion" title="Discussion about the content page [t]" accesskey="t"><span>Discussion</span></a></li> </ul> </div> </div> <div id="vector-variants-dropdown" class="vector-dropdown emptyPortlet" > <input type="checkbox" id="vector-variants-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-variants-dropdown" class="vector-dropdown-checkbox " aria-label="Change language variant" > <label id="vector-variants-dropdown-label" for="vector-variants-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">English</span> </label> <div class="vector-dropdown-content"> <div id="p-variants" class="vector-menu mw-portlet mw-portlet-variants emptyPortlet" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> </div> </div> </nav> </div> <div id="right-navigation" class="vector-collapsible"> <nav aria-label="Views"> <div id="p-views" class="vector-menu vector-menu-tabs mw-portlet mw-portlet-views" > <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-view" class="selected vector-tab-noicon mw-list-item"><a href="/wiki/Abstract_Wikipedia/Representation_of_languages"><span>Read</span></a></li><li id="ca-edit" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Abstract_Wikipedia/Representation_of_languages&amp;action=edit" title="Edit this page [e]" accesskey="e"><span>Edit</span></a></li><li id="ca-history" class="vector-tab-noicon mw-list-item"><a href="/w/index.php?title=Abstract_Wikipedia/Representation_of_languages&amp;action=history" title="Past revisions of this page [h]" accesskey="h"><span>View history</span></a></li> </ul> </div> </div> </nav> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-dropdown" class="vector-dropdown vector-page-tools-dropdown" > <input type="checkbox" id="vector-page-tools-dropdown-checkbox" role="button" aria-haspopup="true" data-event-name="ui.dropdown-vector-page-tools-dropdown" class="vector-dropdown-checkbox " aria-label="Tools" > <label id="vector-page-tools-dropdown-label" for="vector-page-tools-dropdown-checkbox" class="vector-dropdown-label cdx-button cdx-button--fake-button cdx-button--fake-button--enabled cdx-button--weight-quiet" aria-hidden="true" ><span class="vector-dropdown-label-text">Tools</span> </label> <div class="vector-dropdown-content"> <div id="vector-page-tools-unpinned-container" class="vector-unpinned-container"> <div id="vector-page-tools" class="vector-page-tools vector-pinnable-element"> <div class="vector-pinnable-header vector-page-tools-pinnable-header vector-pinnable-header-unpinned" data-feature-name="page-tools-pinned" data-pinnable-element-id="vector-page-tools" data-pinned-container-id="vector-page-tools-pinned-container" data-unpinned-container-id="vector-page-tools-unpinned-container" > <div class="vector-pinnable-header-label">Tools</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-page-tools.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-page-tools.unpin">hide</button> </div> <div id="p-cactions" class="vector-menu mw-portlet mw-portlet-cactions emptyPortlet vector-has-collapsible-items" title="More options" > <div class="vector-menu-heading"> Actions </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="ca-more-view" class="selected vector-more-collapsible-item mw-list-item"><a href="/wiki/Abstract_Wikipedia/Representation_of_languages"><span>Read</span></a></li><li id="ca-more-edit" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Abstract_Wikipedia/Representation_of_languages&amp;action=edit" title="Edit this page [e]" accesskey="e"><span>Edit</span></a></li><li id="ca-more-history" class="vector-more-collapsible-item mw-list-item"><a href="/w/index.php?title=Abstract_Wikipedia/Representation_of_languages&amp;action=history"><span>View history</span></a></li> </ul> </div> </div> <div id="p-tb" class="vector-menu mw-portlet mw-portlet-tb" > <div class="vector-menu-heading"> General </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="t-whatlinkshere" class="mw-list-item"><a href="/wiki/Special:WhatLinksHere/Abstract_Wikipedia/Representation_of_languages" title="A list of all wiki pages that link here [j]" accesskey="j"><span>What links here</span></a></li><li id="t-recentchangeslinked" class="mw-list-item"><a href="/wiki/Special:RecentChangesLinked/Abstract_Wikipedia/Representation_of_languages" rel="nofollow" title="Recent changes in pages linked from this page [k]" accesskey="k"><span>Related changes</span></a></li><li id="t-specialpages" class="mw-list-item"><a href="/wiki/Special:SpecialPages" title="A list of all special pages [q]" accesskey="q"><span>Special pages</span></a></li><li id="t-permalink" class="mw-list-item"><a href="/w/index.php?title=Abstract_Wikipedia/Representation_of_languages&amp;oldid=23785995" title="Permanent link to this revision of this page"><span>Permanent link</span></a></li><li id="t-info" class="mw-list-item"><a href="/w/index.php?title=Abstract_Wikipedia/Representation_of_languages&amp;action=info" title="More information about this page"><span>Page information</span></a></li><li id="t-cite" class="mw-list-item"><a href="/w/index.php?title=Special:CiteThisPage&amp;page=Abstract_Wikipedia%2FRepresentation_of_languages&amp;id=23785995&amp;wpFormIdentifier=titleform" title="Information on how to cite this page"><span>Cite this page</span></a></li><li id="t-urlshortener" class="mw-list-item"><a href="/w/index.php?title=Special:UrlShortener&amp;url=https%3A%2F%2Fmeta.wikimedia.org%2Fwiki%2FAbstract_Wikipedia%2FRepresentation_of_languages"><span>Get shortened URL</span></a></li><li id="t-urlshortener-qrcode" class="mw-list-item"><a href="/w/index.php?title=Special:QrCode&amp;url=https%3A%2F%2Fmeta.wikimedia.org%2Fwiki%2FAbstract_Wikipedia%2FRepresentation_of_languages"><span>Download QR code</span></a></li> </ul> </div> </div> <div id="p-coll-print_export" class="vector-menu mw-portlet mw-portlet-coll-print_export" > <div class="vector-menu-heading"> Print/export </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> <li id="coll-create_a_book" class="mw-list-item"><a href="/w/index.php?title=Special:Book&amp;bookcmd=book_creator&amp;referer=Abstract+Wikipedia%2FRepresentation+of+languages"><span>Create a book</span></a></li><li id="coll-download-as-rl" class="mw-list-item"><a href="/w/index.php?title=Special:DownloadAsPdf&amp;page=Abstract_Wikipedia%2FRepresentation_of_languages&amp;action=show-download-screen"><span>Download as PDF</span></a></li><li id="t-print" class="mw-list-item"><a href="/w/index.php?title=Abstract_Wikipedia/Representation_of_languages&amp;printable=yes" title="Printable version of this page [p]" accesskey="p"><span>Printable version</span></a></li> </ul> </div> </div> <div id="p-wikibase-otherprojects" class="vector-menu mw-portlet mw-portlet-wikibase-otherprojects emptyPortlet" > <div class="vector-menu-heading"> In other projects </div> <div class="vector-menu-content"> <ul class="vector-menu-content-list"> </ul> </div> </div> </div> </div> </div> </div> </nav> </div> </div> </div> <div class="vector-column-end"> <div class="vector-sticky-pinned-container"> <nav class="vector-page-tools-landmark" aria-label="Page tools"> <div id="vector-page-tools-pinned-container" class="vector-pinned-container"> </div> </nav> <nav class="vector-appearance-landmark" aria-label="Appearance"> <div id="vector-appearance-pinned-container" class="vector-pinned-container"> <div id="vector-appearance" class="vector-appearance vector-pinnable-element"> <div class="vector-pinnable-header vector-appearance-pinnable-header vector-pinnable-header-pinned" data-feature-name="appearance-pinned" data-pinnable-element-id="vector-appearance" data-pinned-container-id="vector-appearance-pinned-container" data-unpinned-container-id="vector-appearance-unpinned-container" > <div class="vector-pinnable-header-label">Appearance</div> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-pin-button" data-event-name="pinnable-header.vector-appearance.pin">move to sidebar</button> <button class="vector-pinnable-header-toggle-button vector-pinnable-header-unpin-button" data-event-name="pinnable-header.vector-appearance.unpin">hide</button> </div> </div> </div> </nav> </div> </div> <div id="bodyContent" class="vector-body" aria-labelledby="firstHeading" data-mw-ve-target-container> <div class="vector-body-before-content"> <div class="mw-indicators"> <div id="mw-indicator-phabricator-project" class="mw-indicator"><div class="mw-parser-output"><span class="notheme" lang="en" dir="ltr" style="font-size:87%;line-height:normal;margin:1px .2em;background:#CFC;color:#202122;border:1px solid var(--border-color-subtle, #c8ccd1);border-radius:.3em;padding:1px .2em;font-weight:bold;font-style:normal;text-decoration:none"><a href="/wiki/Special:MyLanguage/Phabricator" title="Special:MyLanguage/Phabricator">Phabricator</a> project: <bdi lang="en" dir="ltr"><a href="https://phabricator.wikimedia.org/tag/abstract_wikipedia/" class="extiw" title="phab:tag/abstract wikipedia/"><b>#abstract wikipedia</b></a></bdi></span></div></div> </div> <div id="siteSub" class="noprint">From Meta, a Wikimedia project coordination wiki</div> </div> <div id="contentSub"><div id="mw-content-subtitle"><div class="subpages">&lt; <bdi dir="ltr"><a href="/wiki/Special:MyLanguage/Abstract_Wikipedia" title="Special:MyLanguage/Abstract Wikipedia">Abstract Wikipedia</a></bdi></div></div></div> <div id="mw-content-text" class="mw-body-content"><div class="mw-pt-translate-header noprint nomobile" dir="ltr" lang="en"><a href="/w/index.php?title=Special:Translate&amp;group=page-Abstract+Wikipedia%2FRepresentation+of+languages&amp;action=page&amp;filter=&amp;action_source=translate_page" title="Special:Translate">Translate this page</a></div><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr"><div class="mw-pt-languages noprint navigation-not-searchable" lang="en" dir="ltr"><div class="mw-pt-languages-label">Other languages:</div><ul class="mw-pt-languages-list"><li><a href="/wiki/Abstract_Wikipedia/Representation_of_languages/de" class="mw-pt-progress mw-pt-progress--complete" title="Abstrakte Wikipedia/Darstellung von Sprachen (100% translated)" lang="de" dir="ltr">Deutsch</a></li> <li><span class="mw-pt-languages-ui mw-pt-languages-selected mw-pt-progress mw-pt-progress--complete" lang="en" dir="ltr">English</span></li> <li><a href="/wiki/Abstract_Wikipedia/Representation_of_languages/cs" class="mw-pt-progress mw-pt-progress--complete" title="Abstraktní Wikipedie/Reprezentace jazyků (100% translated)" lang="cs" dir="ltr">čeština</a></li> <li><a href="/wiki/Abstract_Wikipedia/Representation_of_languages/ko" class="mw-pt-progress mw-pt-progress--complete" title="추상 위키백과/언어의 표현 (100% translated)" lang="ko" dir="ltr">한국어</a></li></ul></div> <p class="mw-empty-elt"> </p> <div style="clear:right;float:right;margin:2px .5em;margin-right:0;text-align:right;vertical-align:middle" dir="ltr" lang="en"> <p><span class="mw-valign-middle" typeof="mw:File"><a href="https://lists.wikimedia.org/mailman/listinfo/abstract-wikipedia" title="Abstract Wikipedia via mailing list"><img alt="Abstract Wikipedia via mailing list" src="//upload.wikimedia.org/wikipedia/commons/thumb/7/7e/OOjs_UI_icon_message-progressive.svg/24px-OOjs_UI_icon_message-progressive.svg.png" decoding="async" width="24" height="24" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/7/7e/OOjs_UI_icon_message-progressive.svg/36px-OOjs_UI_icon_message-progressive.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/7/7e/OOjs_UI_icon_message-progressive.svg/48px-OOjs_UI_icon_message-progressive.svg.png 2x" data-file-width="20" data-file-height="20"/></a></span> <span class="mw-valign-middle" typeof="mw:File"><a href="//kiwiirc.com/nextclient/irc.libera.chat/#wikipedia-abstract" title="Abstract Wikipedia on IRC" rel="nofollow"><img alt="Abstract Wikipedia on IRC" src="//upload.wikimedia.org/wikipedia/commons/thumb/a/aa/OOjs_UI_icon_userTalk-ltr-constructive.svg/24px-OOjs_UI_icon_userTalk-ltr-constructive.svg.png" decoding="async" width="24" height="24" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/a/aa/OOjs_UI_icon_userTalk-ltr-constructive.svg/36px-OOjs_UI_icon_userTalk-ltr-constructive.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/a/aa/OOjs_UI_icon_userTalk-ltr-constructive.svg/48px-OOjs_UI_icon_userTalk-ltr-constructive.svg.png 2x" data-file-width="20" data-file-height="20"/></a></span> <span class="mw-valign-middle" typeof="mw:File"><a href="https://t.me/Wikifunctions" title="Wikifunctions on Telegram" rel="nofollow"><img alt="Wikifunctions on Telegram" src="//upload.wikimedia.org/wikipedia/commons/thumb/8/83/Telegram_2019_Logo.svg/24px-Telegram_2019_Logo.svg.png" decoding="async" width="24" height="24" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/8/83/Telegram_2019_Logo.svg/36px-Telegram_2019_Logo.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/8/83/Telegram_2019_Logo.svg/48px-Telegram_2019_Logo.svg.png 2x" data-file-width="512" data-file-height="512"/></a></span> <span class="mw-valign-middle" typeof="mw:File"><a href="https://wikis.world/@wikifunctions" title="Wikifunctions on Mastodon" rel="nofollow"><img alt="Wikifunctions on Mastodon" src="//upload.wikimedia.org/wikipedia/commons/thumb/d/d5/Mastodon_logotype_%28simple%29_new_hue.svg/24px-Mastodon_logotype_%28simple%29_new_hue.svg.png" decoding="async" width="24" height="24" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/d/d5/Mastodon_logotype_%28simple%29_new_hue.svg/36px-Mastodon_logotype_%28simple%29_new_hue.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/d/d5/Mastodon_logotype_%28simple%29_new_hue.svg/48px-Mastodon_logotype_%28simple%29_new_hue.svg.png 2x" data-file-width="65" data-file-height="65"/></a></span> <span class="mw-valign-middle" typeof="mw:File"><a href="//twitter.com/Wikifunctions" title="Wikifunctions on Twitter" rel="nofollow"><img alt="Wikifunctions on Twitter" src="//upload.wikimedia.org/wikipedia/commons/thumb/c/ce/X_logo_2023.svg/24px-X_logo_2023.svg.png" decoding="async" width="24" height="22" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/c/ce/X_logo_2023.svg/36px-X_logo_2023.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/c/ce/X_logo_2023.svg/48px-X_logo_2023.svg.png 2x" data-file-width="300" data-file-height="271"/></a></span> <span class="mw-valign-middle" typeof="mw:File"><a href="//www.facebook.com/Wikifunctions/" title="Wikifunctions on Facebook" rel="nofollow"><img alt="Wikifunctions on Facebook" src="//upload.wikimedia.org/wikipedia/commons/thumb/b/b8/2021_Facebook_icon.svg/24px-2021_Facebook_icon.svg.png" decoding="async" width="24" height="24" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/b/b8/2021_Facebook_icon.svg/36px-2021_Facebook_icon.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/b/b8/2021_Facebook_icon.svg/48px-2021_Facebook_icon.svg.png 2x" data-file-width="512" data-file-height="512"/></a></span> <span class="mw-valign-middle" typeof="mw:File"><a href="https://www.youtube.com/channel/UCgGcaYQT1Oj3J24olYODM3Q?view_as=subscriber" title="Wikifunctions on YouTube" rel="nofollow"><img alt="Wikifunctions on YouTube" src="//upload.wikimedia.org/wikipedia/commons/thumb/0/09/YouTube_full-color_icon_%282017%29.svg/24px-YouTube_full-color_icon_%282017%29.svg.png" decoding="async" width="24" height="17" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/0/09/YouTube_full-color_icon_%282017%29.svg/36px-YouTube_full-color_icon_%282017%29.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/0/09/YouTube_full-color_icon_%282017%29.svg/48px-YouTube_full-color_icon_%282017%29.svg.png 2x" data-file-width="512" data-file-height="358"/></a></span> <span class="mw-valign-middle" typeof="mw:File"><a href="https://commons.wikimedia.org/wiki/Category:Abstract_Wikipedia" title="Wikifunctions on Wikimedia Commons"><img alt="Wikifunctions website" src="//upload.wikimedia.org/wikipedia/commons/thumb/4/4a/Commons-logo.svg/18px-Commons-logo.svg.png" decoding="async" width="18" height="24" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/4/4a/Commons-logo.svg/27px-Commons-logo.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/4/4a/Commons-logo.svg/36px-Commons-logo.svg.png 2x" data-file-width="1024" data-file-height="1376"/></a></span> <bdi lang="en" dir="ltr" class="plainlinks" style="font-size:smaller;"><a class="external text" href="https://meta.wikimedia.org/w/index.php?title=Special:Translate/page-Template:Abstract_Wikipedia&amp;language=en&amp;action=page"><span style="margin:1px;padding:0 1px"><span class="mw-default-size mw-valign-middle" typeof="mw:File"><span title="Translate"><img alt="Translate" src="//upload.wikimedia.org/wikipedia/commons/thumb/6/62/Globe_of_letters.png/16px-Globe_of_letters.png" decoding="async" width="16" height="13" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/6/62/Globe_of_letters.png/25px-Globe_of_letters.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/6/62/Globe_of_letters.png/32px-Globe_of_letters.png 2x" data-file-width="144" data-file-height="116"/></span></span></span></a></bdi> </p> </div> <style data-mw-deduplicate="TemplateStyles:r27803994">.mw-parser-output .plainlist ol,.mw-parser-output .plainlist ul{line-height:inherit;list-style:none;margin:0}.mw-parser-output .plainlist ol li,.mw-parser-output .plainlist ul li{margin-bottom:0}</style><style data-mw-deduplicate="TemplateStyles:r27243693">.mw-parser-output .sidebar{width:22em;float:right;clear:right;margin:0.5em 0 1em 1em;background:var(--background-color-neutral-subtle,#f8f9fa);border:1px solid var(--border-color-base,#a2a9b1);padding:0.2em;text-align:center;line-height:1.4em;font-size:88%;border-collapse:collapse;display:table;box-sizing:border-box}body.skin-minerva .mw-parser-output .sidebar{display:table!important;float:right!important;margin:0.5em 0 1em 1em!important}.mw-parser-output .sidebar-subgroup{width:100%;margin:0;border-spacing:0}.mw-parser-output .sidebar-left{float:left;clear:left;margin:0.5em 1em 1em 0}.mw-parser-output .sidebar-none{float:none;clear:both;margin:0.5em 1em 1em 0}.mw-parser-output .sidebar-outer-title{padding:0 0.4em 0.2em;font-size:125%;line-height:1.2em;font-weight:bold}.mw-parser-output .sidebar-top-image{padding:0.4em}.mw-parser-output .sidebar-top-caption,.mw-parser-output .sidebar-pretitle-with-top-image,.mw-parser-output .sidebar-caption{padding:0.2em 0.4em 0;line-height:1.2em}.mw-parser-output .sidebar-pretitle{padding:0.4em 0.4em 0;line-height:1.2em}.mw-parser-output .sidebar-title,.mw-parser-output .sidebar-title-with-pretitle{padding:0.2em 0.8em;font-size:145%;line-height:1.2em}.mw-parser-output .sidebar-title-with-pretitle{padding:0.1em 0.4em}.mw-parser-output .sidebar-image{padding:0.2em 0.4em 0.4em}.mw-parser-output .sidebar-heading{padding:0.1em 0.4em}.mw-parser-output .sidebar-content{padding:0 0.5em 0.4em}.mw-parser-output .sidebar-content-with-subgroup{padding:0.1em 0.4em 0.2em}.mw-parser-output .sidebar-above,.mw-parser-output .sidebar-below{padding:0.3em 0.8em;font-weight:bold}.mw-parser-output .sidebar-collapse .sidebar-above,.mw-parser-output .sidebar-collapse .sidebar-below{border-top:1px solid var(--border-color-base,#a2a9b1);border-bottom:1px solid var(--border-color-base,#a2a9b1)}.mw-parser-output .sidebar-navbar{text-align:right;font-size:115%;padding:0 0.4em 0.4em}.mw-parser-output .sidebar-list-title{padding:0 0.4em;text-align:left;font-weight:bold;line-height:1.6em;font-size:105%}.mw-parser-output .sidebar-list-title-c{padding:0 0.4em;text-align:center;margin:0 3.3em}@media(max-width:720px){body.mediawiki .mw-parser-output .sidebar{width:100%!important;clear:both;float:none!important;margin-left:0!important;margin-right:0!important}}</style><table class="sidebar nomobile nowraplinks"><tbody><tr><th class="sidebar-title"><a href="/wiki/Special:MyLanguage/Abstract_Wikipedia" title="Special:MyLanguage/Abstract Wikipedia">Abstract Wikipedia</a></th></tr><tr><td class="sidebar-above"> (<a href="/wiki/Talk:Abstract_Wikipedia" title="Talk:Abstract Wikipedia">Discussion</a>)</td></tr><tr><th class="sidebar-heading"> General</th></tr><tr><td class="sidebar-content plainlist" style="text-align: left"> <ul><li><a href="/wiki/Special:MyLanguage/Abstract_Wikipedia/Overview" title="Special:MyLanguage/Abstract Wikipedia/Overview">Overview</a> — <a href="/wiki/Special:MyLanguage/Abstract_Wikipedia/Vision" title="Special:MyLanguage/Abstract Wikipedia/Vision">Vision</a></li> <li><a href="/wiki/Special:MyLanguage/Abstract_Wikipedia/Glossary" title="Special:MyLanguage/Abstract Wikipedia/Glossary">Glossary</a> — <a href="/wiki/Special:MyLanguage/Abstract_Wikipedia/FAQ" title="Special:MyLanguage/Abstract Wikipedia/FAQ">FAQ</a></li> <li><a href="/wiki/Special:MyLanguage/Abstract_Wikipedia/Function_model" title="Special:MyLanguage/Abstract Wikipedia/Function model">Function model</a></li> <li><b><a href="/wiki/Special:MyLanguage/Abstract_Wikipedia/Updates" title="Special:MyLanguage/Abstract Wikipedia/Updates">Updates</a></b> (<a href="/wiki/Global_message_delivery/Targets/Wikifunctions_%26_Abstract_Wikipedia" title="Global message delivery/Targets/Wikifunctions &amp; Abstract Wikipedia">subscribe</a>)</li></ul></td> </tr><tr><th class="sidebar-heading"> Development plan</th></tr><tr><td class="sidebar-content plainlist" style="text-align: left"> <ul><li><a href="/wiki/Special:MyLanguage/Abstract_Wikipedia/Summary" title="Special:MyLanguage/Abstract Wikipedia/Summary">Summary</a> — <a href="/wiki/Special:MyLanguage/Abstract_Wikipedia/Name" title="Special:MyLanguage/Abstract Wikipedia/Name">Name</a></li> <li><a href="/wiki/Special:MyLanguage/Abstract_Wikipedia/Goals" title="Special:MyLanguage/Abstract Wikipedia/Goals">Goals</a></li> <li><a href="/wiki/Special:MyLanguage/Abstract_Wikipedia/Organization" title="Special:MyLanguage/Abstract Wikipedia/Organization">Organization</a> — <a href="/wiki/Special:MyLanguage/Abstract_Wikipedia/Requirements" title="Special:MyLanguage/Abstract Wikipedia/Requirements">Requirements</a></li> <li><a href="/wiki/Special:MyLanguage/Abstract_Wikipedia/Architecture" title="Special:MyLanguage/Abstract Wikipedia/Architecture">Architecture</a> — <a href="/wiki/Special:MyLanguage/Abstract_Wikipedia/Components" title="Special:MyLanguage/Abstract Wikipedia/Components">Components</a></li> <li><a href="/wiki/Special:MyLanguage/Abstract_Wikipedia/Tasks" title="Special:MyLanguage/Abstract Wikipedia/Tasks">Tasks</a> — <a href="/wiki/Special:MyLanguage/Abstract_Wikipedia/Phases" title="Special:MyLanguage/Abstract Wikipedia/Phases">Implementation phases</a></li> <li>(<a href="/wiki/Special:MyLanguage/Abstract_Wikipedia/Plan" title="Special:MyLanguage/Abstract Wikipedia/Plan">single page version</a> of all above)</li></ul></td> </tr><tr><th class="sidebar-heading"> Notes, drafts, discussions</th></tr><tr><td class="sidebar-content plainlist" style="text-align: left"> <ul><li><a href="/wiki/Special:MyLanguage/Abstract_Wikipedia/Notes" title="Special:MyLanguage/Abstract Wikipedia/Notes">Overview of notes</a></li> <li>– <a href="/wiki/Special:MyLanguage/Abstract_Wikipedia/Pre-generic_function_model" title="Special:MyLanguage/Abstract Wikipedia/Pre-generic function model">Pre-generic function model</a></li> <li>– <a href="/wiki/Special:MyLanguage/Abstract_Wikipedia/Object_creation_requirements" title="Special:MyLanguage/Abstract Wikipedia/Object creation requirements">Object creation requirements</a></li> <li>– <a href="/wiki/Special:MyLanguage/Abstract_Wikipedia/First_evaluation_engine" title="Special:MyLanguage/Abstract Wikipedia/First evaluation engine">First evaluation engine</a></li> <li>– <a href="/wiki/Special:MyLanguage/Abstract_Wikipedia/Function_evaluator_call" title="Special:MyLanguage/Abstract Wikipedia/Function evaluator call">Function evaluator call</a></li> <li>– <a href="/wiki/Special:MyLanguage/Abstract_Wikipedia/Dates" title="Special:MyLanguage/Abstract Wikipedia/Dates">Representation of dates</a></li> <li>– <a href="/wiki/Special:MyLanguage/Abstract_Wikipedia/Representation_of_languages" title="Special:MyLanguage/Abstract Wikipedia/Representation of languages">Representation of languages</a></li> <li>– <a href="/wiki/Special:MyLanguage/Abstract_Wikipedia/Representation_of_errors" title="Special:MyLanguage/Abstract Wikipedia/Representation of errors">Representation of errors</a></li> <li>– <a href="/wiki/Special:MyLanguage/Abstract_Wikipedia/Error_messages_on_ZObjects" title="Special:MyLanguage/Abstract Wikipedia/Error messages on ZObjects">Error messages on ZObjects</a></li> <li>– <a href="/wiki/Special:MyLanguage/Abstract_Wikipedia/Reserved_ZIDs" title="Special:MyLanguage/Abstract Wikipedia/Reserved ZIDs">Reserved ZIDs</a></li> <li>– <a href="/wiki/Special:MyLanguage/Abstract_Wikipedia/Canonical_and_normal" title="Special:MyLanguage/Abstract Wikipedia/Canonical and normal">Canonical and normal</a></li> <li>– <a href="/wiki/Special:MyLanguage/Abstract_Wikipedia/User_stories" title="Special:MyLanguage/Abstract Wikipedia/User stories">User stories</a></li> <li>– <a href="/wiki/Special:MyLanguage/Abstract_Wikipedia/NLG_system_architecture_proposal" title="Special:MyLanguage/Abstract Wikipedia/NLG system architecture proposal">NLG system architecture proposal</a></li> <li>– <a href="/wiki/Special:MyLanguage/Abstract_Wikipedia/Template_Language_for_Wikifunctions" title="Special:MyLanguage/Abstract Wikipedia/Template Language for Wikifunctions">Template Language for Wikifunctions</a></li> <li><a href="/wiki/Special:MyLanguage/Abstract_Wikipedia/Wikidata_Abstract_Representation" title="Special:MyLanguage/Abstract Wikipedia/Wikidata Abstract Representation">Wikidata Abstract Representation</a></li> <li><a href="/wiki/Special:MyLanguage/Abstract_Wikipedia/Early_discussion_topics" title="Special:MyLanguage/Abstract Wikipedia/Early discussion topics">Discussion topics</a></li> <li><a href="/wiki/Special:MyLanguage/Abstract_Wikipedia/External_outreach" title="Special:MyLanguage/Abstract Wikipedia/External outreach">External outreach</a></li> <li><a href="/wiki/Special:MyLanguage/Abstract_Wikipedia/Ideas" title="Special:MyLanguage/Abstract Wikipedia/Ideas">Ideas</a></li> <li><a href="/wiki/Special:MyLanguage/Abstract_Wikipedia/Licensing_discussion" title="Special:MyLanguage/Abstract Wikipedia/Licensing discussion">Licensing discussion</a></li> <li><a href="/wiki/Special:MyLanguage/Abstract_Wikipedia/Related_and_previous_work" title="Special:MyLanguage/Abstract Wikipedia/Related and previous work">Related and previous work</a></li> <li>– <a href="/wiki/Special:MyLanguage/Abstract_Wikipedia/Related_and_previous_work/Natural_language_generation" title="Special:MyLanguage/Abstract Wikipedia/Related and previous work/Natural language generation">Natural language generation</a></li> <li>– <a href="/wiki/Special:MyLanguage/Abstract_Wikipedia/Related_and_previous_work/Theories_of_semantics_and_meaning_representations" title="Special:MyLanguage/Abstract Wikipedia/Related and previous work/Theories of semantics and meaning representations">Theories of semantics and meaning representations</a></li> <li>– <a href="/wiki/Special:MyLanguage/Abstract_Wikipedia/Related_and_previous_work/Workshops" title="Special:MyLanguage/Abstract Wikipedia/Related and previous work/Workshops">Workshops</a></li> <li><a href="/wiki/Special:MyLanguage/Abstract_Wikipedia/ZObject" title="Special:MyLanguage/Abstract Wikipedia/ZObject">ZObject</a></li></ul></td> </tr><tr><th class="sidebar-heading"> Examples &amp; mockups</th></tr><tr><td class="sidebar-content plainlist" style="text-align: left"> <ul><li><a href="/wiki/Special:MyLanguage/Abstract_Wikipedia/Examples" title="Special:MyLanguage/Abstract Wikipedia/Examples">Examples</a></li> <li><a href="/wiki/Special:MyLanguage/Abstract_Wikipedia/Early_function_examples" title="Special:MyLanguage/Abstract Wikipedia/Early function examples">Examples of functions</a></li> <li><a href="/wiki/Special:MyLanguage/Abstract_Wikipedia/Early_mockups" title="Special:MyLanguage/Abstract Wikipedia/Early mockups">Mockups</a></li> <li><a href="/wiki/Special:MyLanguage/Abstract_Wikipedia/Examples/Jupiter" title="Special:MyLanguage/Abstract Wikipedia/Examples/Jupiter">Example: Jupiter</a></li> <li><a href="/wiki/Special:MyLanguage/Abstract_Wikipedia/Examples/Function_composition" title="Special:MyLanguage/Abstract Wikipedia/Examples/Function composition">Examples: Function composition</a></li></ul></td> </tr><tr><th class="sidebar-heading"> Data tools</th></tr><tr><td class="sidebar-content plainlist" style="text-align: left"> <ul><li><a href="/wiki/Special:MyLanguage/Abstract_Wikipedia/Data" title="Special:MyLanguage/Abstract Wikipedia/Data">Data</a></li> <li><a href="https://www.wikidata.org/wiki/Special:MyLanguage/Wikidata:Lexicographical_coverage" class="extiw" title="d:Special:MyLanguage/Wikidata:Lexicographical coverage">Lexicographical coverage</a></li></ul></td> </tr><tr><th class="sidebar-heading"> Historical</th></tr><tr><td class="sidebar-content plainlist" style="text-align: left"> <ul><li><a href="/wiki/Special:MyLanguage/Abstract_Wikipedia/Papers,_press,_and_videos" title="Special:MyLanguage/Abstract Wikipedia/Papers, press, and videos">Papers, press, and videos</a></li> <li><a href="/wiki/Special:MyLanguage/Abstract_Wikipedia/Historic_proposal" title="Special:MyLanguage/Abstract Wikipedia/Historic proposal">Historic proposal</a></li> <li><a href="/wiki/Special:MyLanguage/Abstract_Wikipedia/Wiki_of_functions_naming_contest" title="Special:MyLanguage/Abstract Wikipedia/Wiki of functions naming contest">Naming contest</a> — <a href="/wiki/Special:MyLanguage/Abstract_Wikipedia/Wikifunctions_logo_concept" title="Special:MyLanguage/Abstract Wikipedia/Wikifunctions logo concept">Logo contest</a></li> <li><div style="margin:0 .5em;float:right;margin-right:0"><bdi lang="en" dir="ltr" class="plainlinks" style="font-size:smaller;"><a class="external text" href="https://meta.wikimedia.org/w/index.php?title=Special:Translate/page-Template:Abstract_Wikipedia_navbox&amp;language=en&amp;action=page"><span style="margin:1px;padding:0 1px"><span class="mw-default-size mw-valign-middle" typeof="mw:File"><span title="Translate"><img alt="Translate" src="//upload.wikimedia.org/wikipedia/commons/thumb/6/62/Globe_of_letters.png/16px-Globe_of_letters.png" decoding="async" width="16" height="13" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/6/62/Globe_of_letters.png/25px-Globe_of_letters.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/6/62/Globe_of_letters.png/32px-Globe_of_letters.png 2x" data-file-width="144" data-file-height="116"/></span></span></span></a></bdi></div><a href="/wiki/Special:MyLanguage/Category:Abstract_Wikipedia/Archives" title="Special:MyLanguage/Category:Abstract Wikipedia/Archives">Archives</a></li></ul></td> </tr></tbody></table> <style data-mw-deduplicate="TemplateStyles:r27362704">.mw-parser-output .ombox{margin:4px 0;border-collapse:collapse;border:1px solid #a2a9b1;background-color:var(--background-color-neutral-subtle,#f8f9fa);box-sizing:border-box;color:var(--color-base,#202122)}.mw-parser-output .ombox.mbox-small{font-size:88%;line-height:1.25em}.mw-parser-output .ombox-speedy{border:2px solid #b32424;background-color:#fee7e6}.mw-parser-output .ombox-delete{border:2px solid #b32424}.mw-parser-output .ombox-content{border:1px solid #f28500}.mw-parser-output .ombox-style{border:1px solid #fc3}.mw-parser-output .ombox-move{border:1px solid #9932cc}.mw-parser-output .ombox-protection{border:2px solid #a2a9b1}.mw-parser-output .ombox .mbox-text{border:none;padding:0.25em 0.9em;width:100%}.mw-parser-output .ombox .mbox-image{border:none;padding:2px 0 2px 0.9em;text-align:center}.mw-parser-output .ombox .mbox-imageright{border:none;padding:2px 0.9em 2px 0;text-align:center}.mw-parser-output .ombox .mbox-empty-cell{border:none;padding:0;width:1px}.mw-parser-output .ombox .mbox-invalid-type{text-align:center}@media(min-width:720px){.mw-parser-output .ombox{margin:4px 10%}.mw-parser-output .ombox.mbox-small{clear:right;float:right;margin:4px 0 4px 1em;width:238px}}body.skin--responsive .mw-parser-output table.ombox img{max-width:none!important}@media screen{html.skin-theme-clientpref-night .mw-parser-output .ombox-speedy{background-color:#310402}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .ombox-speedy{background-color:#310402}}</style><table class="plainlinks ombox ombox-notice" role="presentation"><tbody><tr><td class="mbox-image"><span typeof="mw:File"><span><img src="//upload.wikimedia.org/wikipedia/commons/thumb/4/4c/Correct.svg/40px-Correct.svg.png" decoding="async" width="40" height="40" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/4/4c/Correct.svg/60px-Correct.svg.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/4/4c/Correct.svg/80px-Correct.svg.png 2x" data-file-width="48" data-file-height="48"/></span></span></td><td class="mbox-text"><div style="margin:0 .5em;float:right;margin-right:0"><bdi lang="en" dir="ltr" class="plainlinks" style="font-size:smaller;"><a class="external text" href="https://meta.wikimedia.org/w/index.php?title=Special:Translate/page-Template:Draft&amp;language=en&amp;action=page"><span style="margin:1px;padding:0 1px"><span class="mw-default-size mw-valign-middle" typeof="mw:File"><span title="Translate"><img alt="Translate" src="//upload.wikimedia.org/wikipedia/commons/thumb/6/62/Globe_of_letters.png/16px-Globe_of_letters.png" decoding="async" width="16" height="13" class="mw-file-element" srcset="//upload.wikimedia.org/wikipedia/commons/thumb/6/62/Globe_of_letters.png/25px-Globe_of_letters.png 1.5x, //upload.wikimedia.org/wikipedia/commons/thumb/6/62/Globe_of_letters.png/32px-Globe_of_letters.png 2x" data-file-width="144" data-file-height="116"/></span></span></span></a></bdi></div> <p><b>This page is currently a draft.</b> More information pertaining to this may be available on the <a href="/wiki/Talk:Abstract_Wikipedia/Representation_of_languages" title="Talk:Abstract Wikipedia/Representation of languages">talk page</a>. </p> Translation admins: Normally, drafts should <i>not</i> be marked for translation.</td></tr></tbody></table> <meta property="mw:PageProp/toc"/> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Language_objects" data-mw-thread-id="h-Language_objects"><span data-mw-comment-start="" id="h-Language_objects"></span>Language objects<span data-mw-comment-end="h-Language_objects"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Abstract_Wikipedia/Representation_of_languages&amp;action=edit&amp;section=1" title="Edit section: Language objects"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Language_objects","replies":["h-Advantages_of_objects_over_codes-Language_objects","h-Advantages_of_code_over_objects-Language_objects","h-Language_names-Language_objects","h-BCP_47_mappings-Language_objects","h-Language_fallback-Language_objects"]}}--></div> <div class="tracked tracked-floatright mw-trackedTemplate"> <style data-mw-deduplicate="TemplateStyles:r27690877">.mw-parser-output .tracked{font-size:85%;margin:2px;background-color:var(--background-color-neutral,#eaecf0);color:var(--color-base,#202122);border:1px solid var(--border-color-base,#a2a9b1);border-radius:.5em;padding:2px .3em;width:12em;text-align:center}.mw-parser-output .tracked-floatright{float:right;clear:right;margin:2px 0 2px 2px}.mw-parser-output .tracked-floatleft{float:left;clear:left;margin:2px 2px 2px 0}</style> Tracked in <a href="https://www.mediawiki.org/wiki/Special:MyLanguage/Phabricator" class="extiw" title="mw:Special:MyLanguage/Phabricator">Phabricator</a>: <br/> <a href="https://phabricator.wikimedia.org/T263000" class="extiw" title="phabricator:T263000"><strong class="trakfab-T263000">Task T263000</strong></a></div> <p>As of March 2021, Wikifunctions represents languages using their MediaWiki language code (<i>e.g.</i> "en" for English, "ja" for Japanese, <i>etc.</i>). The monolingual text representing the English label "Type" for example looks as follows: </p> <table class="wikitable" style="margin:.6em 1.6em"> <tbody><tr> <td><div class="mw-highlight mw-highlight-lang-json mw-content-ltr mw-highlight-lines" dir="ltr"><pre><span></span><span class="linenos" data-line="1"></span><span class="p">{</span> <span class="linenos" data-line="2"></span><span class="w"> </span><span class="nt">"type"</span><span class="p">:</span><span class="w"> </span><span class="s2">"Monolingual text"</span><span class="p">,</span> <span class="linenos" data-line="3"></span><span class="w"> </span><span class="nt">"language"</span><span class="p">:</span><span class="w"> </span><span class="s2">"en"</span><span class="p">,</span> <span class="linenos" data-line="4"></span><span class="w"> </span><span class="nt">"text"</span><span class="p">:</span><span class="w"> </span><span class="s2">"Type"</span> <span class="linenos" data-line="5"></span><span class="p">}</span> </pre></div> </td> <td><div class="mw-highlight mw-highlight-lang-json mw-content-ltr" dir="ltr"><pre><span></span><span class="p">{</span> <span class="w"> </span><span class="nt">"Z1K1"</span><span class="p">:</span><span class="w"> </span><span class="s2">"Z11"</span><span class="p">,</span> <span class="w"> </span><span class="nt">"Z11K1"</span><span class="p">:</span><span class="w"> </span><span class="s2">"en"</span><span class="p">,</span> <span class="w"> </span><span class="nt">"Z11K2"</span><span class="p">:</span><span class="w"> </span><span class="s2">"Type"</span> <span class="p">}</span> </pre></div> </td></tr></tbody></table> <p>Here, both "en" and "type" are of type Z6/String. </p><p>The suggestion is to change the type for Z11K1/language from Z6/String to a new type, Z60/Natural language. Z60/Natural language has only one key, the Z60K1/language code of type Z6/String. This would mean the above representation would change to the following: </p> <table class="wikitable" style="margin:.6em 1.6em"> <tbody><tr> <td><div class="mw-highlight mw-highlight-lang-json mw-content-ltr mw-highlight-lines" dir="ltr"><pre><span></span><span class="linenos" data-line="1"></span><span class="p">{</span> <span class="linenos" data-line="2"></span><span class="w"> </span><span class="nt">"type"</span><span class="p">:</span><span class="w"> </span><span class="s2">"Monolingual text"</span><span class="p">,</span> <span class="linenos" data-line="3"></span><span class="w"> </span><span class="nt">"language"</span><span class="p">:</span><span class="w"> </span><span class="s2">"English"</span><span class="p">,</span> <span class="linenos" data-line="4"></span><span class="w"> </span><span class="nt">"text"</span><span class="p">:</span><span class="w"> </span><span class="s2">"Type"</span> <span class="linenos" data-line="5"></span><span class="p">}</span> </pre></div> </td> <td><div class="mw-highlight mw-highlight-lang-json mw-content-ltr" dir="ltr"><pre><span></span><span class="p">{</span> <span class="w"> </span><span class="nt">"Z1K1"</span><span class="p">:</span><span class="w"> </span><span class="s2">"Z11"</span><span class="p">,</span> <span class="w"> </span><span class="nt">"Z11K1"</span><span class="p">:</span><span class="w"> </span><span class="s2">"Z1002"</span><span class="p">,</span> <span class="w"> </span><span class="nt">"Z11K2"</span><span class="p">:</span><span class="w"> </span><span class="s2">"Type"</span> <span class="p">}</span> </pre></div> </td></tr></tbody></table> <div class="mw-heading mw-heading3"><h3 id="Advantages_of_objects_over_codes" data-mw-thread-id="h-Advantages_of_objects_over_codes-Language_objects"><span data-mw-comment-start="" id="h-Advantages_of_objects_over_codes-Language_objects"></span>Advantages of objects over codes<span data-mw-comment-end="h-Advantages_of_objects_over_codes-Language_objects"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Abstract_Wikipedia/Representation_of_languages&amp;action=edit&amp;section=2" title="Edit section: Advantages of objects over codes"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li>Instead of having to memorise language codes, we can use the same search as for every other object</li> <li>When switching interface languages, the reader will see the language names in their language instead of language code they are possibly not familiar with</li> <li>We can use a generic validation of the language object instead of hardcoding something that relies on MediaWiki's language system</li> <li>The latter point is particularly pertinent when thinking about other implementations supporting Wikifunctions code: they would need to reimplement parts of MediaWiki's language system in order to show consistent behaviour</li></ul> <div class="mw-heading mw-heading3"><h3 id="Advantages_of_code_over_objects" data-mw-thread-id="h-Advantages_of_code_over_objects-Language_objects"><span data-mw-comment-start="" id="h-Advantages_of_code_over_objects-Language_objects"></span>Advantages of code over objects<span data-mw-comment-end="h-Advantages_of_code_over_objects-Language_objects"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Abstract_Wikipedia/Representation_of_languages&amp;action=edit&amp;section=3" title="Edit section: Advantages of code over objects"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <ul><li>We already have an API that offers us a list of codes, and we can use the same source inside of the wiki to validate that the language codes are good</li> <li>We are more used to "en" than "Z1002"</li> <li>The current Z12/Multilingual text component is very fast. It is likely that rewriting the component to use objects will be much slower overall</li> <li>MediaWiki has already really good support for languages, and languages in different names. We could use that instead of developing our own solution to display the name in different languages</li></ul> <div class="mw-heading mw-heading3"><h3 id="Language_names" data-mw-thread-id="h-Language_names-Language_objects"><span data-mw-comment-start="" id="h-Language_names-Language_objects"></span>Language names<span data-mw-comment-end="h-Language_names-Language_objects"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Abstract_Wikipedia/Representation_of_languages&amp;action=edit&amp;section=4" title="Edit section: Language names"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p><i>Seriously? We already have all the language names in MediaWiki in all languages, and we have the language names in Wikidata, too. Having them again, a third time? How is that cool?</i> </p><p>OK, OK, it isn't. Reusing these names would be really sweet. </p><p>Here's one thing, though - if we do some one-off coding for that, that relies on being part of a MediaWiki installation running, we would basically require that every evaluation engine recreates that part of MediaWiki. Or relies on <a href="https://en.wikipedia.org/wiki/Common_Locale_Data_Repository" class="extiw" title="en:Common Locale Data Repository">CLDR</a>. And either of these feel burdensome. </p><p>One way we could do it is to generate the labels of the languages from MediaWiki, and regenerate them as needed, into the data directory of WikiLambda, and then reload these as needed. </p><p>An additional step would be to lock down editing of labels for language objects, and relegate the changing of the labels to go through MediaWiki's established process for that. Without locking them down, we might have problems with a two-way sync reconciling changes on-wiki by Wikifunctions contributors with changes coming from the wiki. </p> <div class="mw-heading mw-heading3"><h3 id="BCP_47_mappings" data-mw-thread-id="h-BCP_47_mappings-Language_objects"><span data-mw-comment-start="" id="h-BCP_47_mappings-Language_objects"></span>BCP 47 mappings<span data-mw-comment-end="h-BCP_47_mappings-Language_objects"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Abstract_Wikipedia/Representation_of_languages&amp;action=edit&amp;section=5" title="Edit section: BCP 47 mappings"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <p><i>We already have mappings from BCP 47 to MediaWiki language codes! Let's reuse those, instead of inventing our own.</i> </p><p>I know. </p><p>The suggestion is similar to the one for language names: in the end it is just two pretty simple functions. These can be kept up-to-date through a similar approach as outlined above, by recreating the mappings from MediaWiki and upload them and potentially locking down their editing. </p> <div class="mw-heading mw-heading3"><h3 id="Language_fallback" data-mw-thread-id="h-Language_fallback-Language_objects"><span data-mw-comment-start="" id="h-Language_fallback-Language_objects"></span>Language fallback<span data-mw-comment-end="h-Language_fallback-Language_objects"></span></h3><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Abstract_Wikipedia/Representation_of_languages&amp;action=edit&amp;section=6" title="Edit section: Language fallback"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span></div> <div class="tracked tracked-floatright mw-trackedTemplate"> <link rel="mw-deduplicated-inline-style" href="mw-data:TemplateStyles:r27690877"> Tracked in <a href="https://www.mediawiki.org/wiki/Special:MyLanguage/Phabricator" class="extiw" title="mw:Special:MyLanguage/Phabricator">Phabricator</a>: <br/> <a href="https://phabricator.wikimedia.org/T268671" class="extiw" title="phabricator:T268671"><strong class="trakfab-T268671">Task T268671</strong></a></div> <p>Let's solve that later. There might be different solutions for interface and for target languages. </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Lists_of_languages" data-mw-thread-id="h-Lists_of_languages"><span data-mw-comment-start="" id="h-Lists_of_languages"></span>Lists of languages<span data-mw-comment-end="h-Lists_of_languages"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Abstract_Wikipedia/Representation_of_languages&amp;action=edit&amp;section=7" title="Edit section: Lists of languages"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Lists_of_languages","replies":[]}}--></div> <p>There are already a several lists of language. Here are some relevant ones: </p> <ol><li><b>Interface languages</b>: the languages that the user interface of MediaWiki supports, <i>i.e.</i> the languages in which user interface elements of MediaWiki can get rendered in (this is distinct from the MediaWiki content languages, see <a href="https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Language" class="extiw" title="mw:Special:MyLanguage/Manual:Language">MediaWiki manual on Language</a>)</li> <li>the list of languages the Lexemes in Wikidata are in</li> <li>the MediaWiki content languages</li> <li>the list of Wikipedia language editions</li> <li>the English Wiktionary's list of all 8,163 language codes that are 'recognised' by their community's templates: <a href="https://en.wiktionary.org/wiki/en:Wiktionary:List_of_languages" class="extiw" title="wikt:en:Wiktionary:List of languages">wikt:en:Wiktionary:List of languages</a> - there's probably a similar list on the other Wiktionaries</li></ol> <p>A similar list of lists of languages is <a href="https://www.wikidata.org/wiki/User:Lea_Lacroix_(WMDE)/List_of_lists_of_languages" class="extiw" title="d:User:Lea Lacroix (WMDE)/List of lists of languages">Léa's list of lists of languages in Wikidata</a>. </p><p>We initially were considering to have <i>interface languages</i> (in which languages is the interface of Wikifunctions available?) to be separate from <i>target languages</i> (in which languages can the Wikifunctions natural language generation library generate content?), but after discussion we decided that it would be more useful for everyone if we keep these two lists aligned. It will probably cost a bit more, but in the end it should improve the situation for everyone. </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Initial_list_of_languages" data-mw-thread-id="h-Initial_list_of_languages"><span data-mw-comment-start="" id="h-Initial_list_of_languages"></span>Initial list of languages<span data-mw-comment-end="h-Initial_list_of_languages"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Abstract_Wikipedia/Representation_of_languages&amp;action=edit&amp;section=8" title="Edit section: Initial list of languages"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Initial_list_of_languages","replies":[]}}--></div> <p>The MediaWiki interface languages are based on the languages the MediaWiki user interface supports. </p><p>MediaWiki identifies languages using short strings similar to (but not always equivalent to) <a href="https://en.wikipedia.org/wiki/ISO_639" class="extiw" title="en:ISO 639">ISO 639</a> or <a href="https://en.wikipedia.org/wiki/IETF_language_tag" class="extiw" title="en:IETF language tag">BCP 47</a> codes. The full list of these is available through the <a href="https://www.mediawiki.org/wiki/Special:MyLanguage/API:Languageinfo" class="extiw" title="mw:Special:MyLanguage/API:Languageinfo">LanguageInfo API</a>. There are at time of writing 858 languages in this list. We will start with this list as our first list of languages. The <a href="/wiki/Talk:Abstract_Wikipedia/Representation_of_languages#More_on_lists_of_languages" title="Talk:Abstract Wikipedia/Representation of languages">source of the list of these languages is described on the talk page</a>. </p><p>The list of languages we currently support in Z12/Multilingual text and that the <a href="https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:Parameters_to_index.php#uselang" class="extiw" title="mw:Special:MyLanguage/Manual:Parameters to index.php">uselang</a> parameter accepts is the full list of 858 languages. </p><p>Note that this is a very inclusive view on what a language is: to just give a few examples, the list includes "de-formal", each of "uz", "uz-latn", and "uz-cyrl", <i>etc.</i> </p> <div class="mw-heading mw-heading2 ext-discussiontools-init-section"><h2 id="Assigning_ZIDs" data-mw-thread-id="h-Assigning_ZIDs"><span data-mw-comment-start="" id="h-Assigning_ZIDs"></span>Assigning ZIDs<span data-mw-comment-end="h-Assigning_ZIDs"></span></h2><span class="mw-editsection"><span class="mw-editsection-bracket">[</span><a href="/w/index.php?title=Abstract_Wikipedia/Representation_of_languages&amp;action=edit&amp;section=9" title="Edit section: Assigning ZIDs"><span>edit</span></a><span class="mw-editsection-bracket">]</span></span><!--__DTELLIPSISBUTTON__{"threadItem":{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Assigning_ZIDs","replies":[]}}--></div> <p>Here is the suggestion for assigning the first set of languages to ZIDs: </p> <ul><li>First, use the list of official working languages of the UN, and assign to them the first few ZIDs (this way there's a chance of memorizing these languages when working with the system). The order is alphabetic based on the code. <ul><li>Z1001/Arabic (ar)</li> <li>Z1002/English (en)</li> <li>Z1003/Spanish (es)</li> <li>Z1004/French (fr)</li> <li>Z1005/Russian (ru)</li> <li>Z1006/Chinese (zh)</li></ul></li> <li>Furthermore, starting with Z1011 and going to Z1861, we assign the other 852 languages that are in the full list of interface languages, based on the alphabetic order of their code. Any further languages will be added chronologically.</li></ul> <p>Alternatives: instead of using an alphabetic order, we could also use a hash or assign them randomly. Sorting them by the number of L1 or L2 speakers is difficult due to a lack of reliable statistics. </p> <!-- NewPP limit report Parsed by mw‐web.eqiad.main‐5584645d7f‐wcv87 Cached time: 20241203002012 Cache expiry: 2592000 Reduced expiry: false Complications: [show‐toc] DiscussionTools time usage: 0.017 seconds CPU time usage: 0.382 seconds Real time usage: 0.521 seconds Preprocessor visited node count: 1488/1000000 Post‐expand include size: 35985/2097152 bytes Template argument size: 982/2097152 bytes Highest expansion depth: 12/100 Expensive parser function count: 10/500 Unstrip recursion depth: 0/20 Unstrip post‐expand size: 9710/5000000 bytes Lua time usage: 0.079/10.000 seconds Lua memory usage: 1495707/52428800 bytes Number of Wikibase entities loaded: 0/400 --> <!-- Transclusion expansion time report (%,ms,calls,template) 100.00% 178.868 1 -total 46.06% 82.380 2 Template:TNT 26.49% 47.385 1 Template:Sidebar 19.00% 33.988 2 Template:Phabricator 18.23% 32.610 1 Template:Draft 15.45% 27.640 1 Template:Ombox 9.91% 17.729 1 Template:Abstract_Wikipedia/layout 9.88% 17.673 1 Template:TNTN 8.24% 14.745 16 Template:Dir 5.21% 9.322 1 Template:Ptag/en --> <!-- Saved in parser cache with key metawiki:pcache:11286147:|#|:idhash:canonical and timestamp 20241203002012 and revision id 23785995. Rendering was triggered because: page-view --> </div><!--esi <esi:include src="/esitest-fa8a495983347898/content" /> --><noscript><img src="https://login.wikimedia.org/wiki/Special:CentralAutoLogin/start?type=1x1&amp;useformat=desktop" alt="" width="1" height="1" style="border: none; position: absolute;"></noscript> <div class="printfooter" data-nosnippet="">Retrieved from "<a dir="ltr" href="https://meta.wikimedia.org/w/index.php?title=Abstract_Wikipedia/Representation_of_languages&amp;oldid=23785995">https://meta.wikimedia.org/w/index.php?title=Abstract_Wikipedia/Representation_of_languages&amp;oldid=23785995</a>"</div></div> <div id="catlinks" class="catlinks" data-mw="interface"><div id="mw-normal-catlinks" class="mw-normal-catlinks"><a href="/wiki/Special:Categories" title="Special:Categories">Categories</a>: <ul><li><a href="/wiki/Category:Drafts" title="Category:Drafts">Drafts</a></li><li><a href="/wiki/Category:Abstract_Wikipedia/Notes" title="Category:Abstract Wikipedia/Notes">Abstract Wikipedia/Notes</a></li></ul></div></div> </div> </main> </div> <div class="mw-footer-container"> <footer id="footer" class="mw-footer" > <ul id="footer-info"> <li id="footer-info-lastmod"> This page was last edited on 11 September 2022, at 16:09.</li> <li id="footer-info-copyright">Text is available under the <a rel="nofollow" class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en">Creative Commons Attribution-ShareAlike License</a>; additional terms may apply. See <a class="external text" href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Terms_of_Use">Terms of Use</a> for details.</li> </ul> <ul id="footer-places"> <li id="footer-places-privacy"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Privacy_policy">Privacy policy</a></li> <li id="footer-places-about"><a href="/wiki/Meta:About">About Meta</a></li> <li id="footer-places-disclaimers"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:General_disclaimer">Disclaimers</a></li> <li id="footer-places-wm-codeofconduct"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Universal_Code_of_Conduct">Code of Conduct</a></li> <li id="footer-places-developers"><a href="https://developer.wikimedia.org">Developers</a></li> <li id="footer-places-statslink"><a href="https://stats.wikimedia.org/#/meta.wikimedia.org">Statistics</a></li> <li id="footer-places-cookiestatement"><a href="https://foundation.wikimedia.org/wiki/Special:MyLanguage/Policy:Cookie_statement">Cookie statement</a></li> <li id="footer-places-mobileview"><a href="//meta.m.wikimedia.org/w/index.php?title=Abstract_Wikipedia/Representation_of_languages&amp;mobileaction=toggle_view_mobile" class="noprint stopMobileRedirectToggle">Mobile view</a></li> </ul> <ul id="footer-icons" class="noprint"> <li id="footer-copyrightico"><a href="https://wikimediafoundation.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/static/images/footer/wikimedia-button.svg" width="84" height="29" alt="Wikimedia Foundation" loading="lazy"></a></li> <li id="footer-poweredbyico"><a href="https://www.mediawiki.org/" class="cdx-button cdx-button--fake-button cdx-button--size-large cdx-button--fake-button--enabled"><img src="/w/resources/assets/poweredby_mediawiki.svg" alt="Powered by MediaWiki" width="88" height="31" loading="lazy"></a></li> </ul> </footer> </div> </div> </div> <div class="vector-settings" id="p-dock-bottom"> <ul></ul> </div><script>(RLQ=window.RLQ||[]).push(function(){mw.config.set({"wgHostname":"mw-web.codfw.main-5f58cd8b6-p7k7n","wgBackendResponseTime":98,"wgDiscussionToolsPageThreads":[{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Language_objects","replies":[{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Advantages_of_objects_over_codes-Language_objects","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Advantages_of_code_over_objects-Language_objects","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Language_names-Language_objects","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-BCP_47_mappings-Language_objects","replies":[]},{"headingLevel":3,"name":"h-","type":"heading","level":0,"id":"h-Language_fallback-Language_objects","replies":[]}]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Lists_of_languages","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Initial_list_of_languages","replies":[]},{"headingLevel":2,"name":"h-","type":"heading","level":0,"id":"h-Assigning_ZIDs","replies":[]}],"wgPageParseReport":{"discussiontools":{"limitreport-timeusage":"0.017"},"limitreport":{"cputime":"0.382","walltime":"0.521","ppvisitednodes":{"value":1488,"limit":1000000},"postexpandincludesize":{"value":35985,"limit":2097152},"templateargumentsize":{"value":982,"limit":2097152},"expansiondepth":{"value":12,"limit":100},"expensivefunctioncount":{"value":10,"limit":500},"unstrip-depth":{"value":0,"limit":20},"unstrip-size":{"value":9710,"limit":5000000},"entityaccesscount":{"value":0,"limit":400},"timingprofile":["100.00% 178.868 1 -total"," 46.06% 82.380 2 Template:TNT"," 26.49% 47.385 1 Template:Sidebar"," 19.00% 33.988 2 Template:Phabricator"," 18.23% 32.610 1 Template:Draft"," 15.45% 27.640 1 Template:Ombox"," 9.91% 17.729 1 Template:Abstract_Wikipedia/layout"," 9.88% 17.673 1 Template:TNTN"," 8.24% 14.745 16 Template:Dir"," 5.21% 9.322 1 Template:Ptag/en"]},"scribunto":{"limitreport-timeusage":{"value":"0.079","limit":"10.000"},"limitreport-memusage":{"value":1495707,"limit":52428800}},"cachereport":{"origin":"mw-web.eqiad.main-5584645d7f-wcv87","timestamp":"20241203002012","ttl":2592000,"transientcontent":false}}});});</script> </body> </html>

Pages: 1 2 3 4 5 6 7 8 9 10