Module:NormalizationLanguage: Difference between revisions

// via Wikitext Extension for VSCode
Tag: Reverted
// via Wikitext Extension for VSCode
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
-- Module:NormalizationLanguage
--[[
-- Maps language inputs (ISO codes, native names) to canonical English names.
* Name: NormalizationLanguage
--
* Author: Mark W. Datysgeld
-- Features:
* Description: Language input mapping from ISO codes and native names to canonical English names with extensive language support
--  * Maps ISO 639-1/2/3 codes to canonical names
* Notes: Maps ISO 639-1/2/3 codes to canonical names; recognizes native names (e.g., "Español" → "Spanish"); toggleable native forms display; strips diacritics for flexible matching; supports Indo-European, Sino-Tibetan, Austronesian, Afro-Asiatic, and other language families; includes caching for performance
--  * Recognizes native names (e.g., "Español" → "Spanish")
]]
--  * Displays native forms with canonical names (toggleable)
--  * Strips diacritics for flexible matching
--   * Formats multiple languages for templates
--
-- Configuration:
--  * setShowNativeForms(true/false) - Toggle native forms display
--  * getShowNativeForms() - Check current setting
--
-- Dependencies:
--  * Module:CanonicalForms - Normalization pattern
--  * Module:NormalizationDiacritic - Diacritic removal


local p = {}
local p = {}