Modul:0form of/lang-data/en

A modult a Modul:0form of/lang-data/en/doc lapon tudod dokumentálni

--[=[
This module contains lang-specific tags for English.
]=]

local tags = {}
local shortcuts = {}
shortcuts["ed-form"] = {"spast", "and", "past", "part"}
shortcuts["ing-form"] = {"pres", "part", "and", "ger"}
shortcuts["s-verb-form"] = {"3", "s", "spres", "ind"}
shortcuts["st-form"] = {"2-st", "s", "spres", "ind"}
shortcuts["st-past-form"] = {"2-st", "s", "spast", "ind"}
shortcuts["th-form"] = {"3-th", "s", "spres", "ind"}

----------------------- Person -----------------------

-- These tags exist so we can add appropriate 'archaic FOO' labels in [[Module:0form of/cats]].
tags["second-person (-st)"] = {
	tag_type = "person",
	display = "[[Appendix:Glossary#second person|second-person]]",
	shortcuts = {"2-st"},
}

tags["third-person (-th)"] = {
	tag_type = "person",
	display = "[[Appendix:Glossary#third person|third-person]]",
	shortcuts = {"3-th"},
}

----------------------- Create the shortcuts list -----------------------

for name, data in pairs(tags) do
	if data.shortcuts then
		for _, shortcut in ipairs(data.shortcuts) do
			shortcuts[shortcut] = name
		end
	end
end

return {tags = tags, shortcuts = shortcuts}