มอดูล:form of/lang-data/en

จาก วิกิพจนานุกรม พจนานุกรมเสรี
--[=[
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"] = {"spres", "s", "3", "ind"}
shortcuts["st-form"] = {"spres", "s", "2-st", "ind"}
shortcuts["st-past-form"] = {"spast", "s", "2-st", "ind"}
shortcuts["th-form"] = {"spres", "s", "3-th", "ind"}

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

-- These tags exist so we can add appropriate 'archaic FOO' labels in [[Module:form of/cats]].
tags["บุรุษที่สอง (-st)"] = {
	tag_type = "person",
	display = "[[Appendix:Glossary#second person|second-person]]",
	shortcuts = {"2-st", "second-person (-st)"},
}

tags["บุรุษที่สาม (-th)"] = {
	tag_type = "person",
	display = "[[Appendix:Glossary#third person|third-person]]",
	shortcuts = {"3-th", "third-person (-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}