Module:nod-headword

Hello, you have come here looking for the meaning of the word Module:nod-headword. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:nod-headword, but we will also tell you about its etymology, its characteristics and you will know how to say Module:nod-headword in singular and plural. Everything you need to know about the word Module:nod-headword you have here. The definition of the word Module:nod-headword will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:nod-headword, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.


local export = {}
local pos_functions = {}

local lang = require("Module:languages").getByCode("nod")
local PAGENAME = mw.title.getCurrentTitle().text
local script = lang:findBestScript(PAGENAME) -- Lana or Thai

function export.show(frame)

	local args = frame:getParent().args
	local poscat = frame.args or error("Part of speech has not been specified. Please pass parameter 1 to the module invocation.")

	local data = {lang = lang, sc = script, pos_category = poscat, sccat = true, categories = {}, heads = {args or PAGENAME}, translits = {args}, inflections = {}}

	if pos_functions then
		pos_functions(args, data)
	end

	return require("Module:headword").full_headword(data)

end

pos_functions = function(args, data)

	local classifiers = {label = "classifier"}

	if args then
		for _,par in ipairs(args) do
			if par == "*" then
				table.insert(classifiers, PAGENAME) -- shorthand
				table.insert(data.categories, "Northern Thai classifiers")
				table.insert(data.categories, "Northern Thai nouns classified by " .. PAGENAME)
			else
				table.insert(classifiers, par)
				table.insert(data.categories, "Northern Thai nouns classified by " .. par)
			end
		end
		table.insert(data.inflections, classifiers)
	end

end

pos_functions = function(args, data)

	local par1 = args; if par1 == "" then par1 = nil end
	local par2 = args; if par2 == "" then par2 = nil end
	local par3 = args; if par3 == "" then par3 = nil end
	local tlmode = require("Module:yesno")(args) -- Is the Thai form transliterated?
	local abstract_forms = {label = "abstract noun", accel = {pos = "noun", form = "abstract-noun"}}

	if par1 ~= "-" then
		if not par1 then
			if data.sc:getCode() == "Lana" then
				table.insert(abstract_forms, "ᨠᩣ᩠ᩁ" .. PAGENAME)
			else
				if tlmode then
					table.insert(abstract_forms, "การ" .. PAGENAME)
				else
					table.insert(abstract_forms, "ก๋าร" .. PAGENAME)
					table.insert(abstract_forms, "ก๋าน" .. PAGENAME)
				end
			end
		else
			if par1 == "~" then
				if data.sc:getCode() == "Lana" then
					table.insert(abstract_forms, "ᨠᩣ᩠ᩁ" .. PAGENAME)
					table.insert(abstract_forms, "ᨣᩤᩴ" .. PAGENAME) -- native
					table.insert(abstract_forms, "ᨤ᩠ᩅᩣ᩠ᨾ" .. PAGENAME)
				else
					if tlmode then
						table.insert(abstract_forms, "การ" .. PAGENAME)
						table.insert(abstract_forms, "คำ" .. PAGENAME) -- native
						table.insert(abstract_forms, "ฅวาม" .. PAGENAME)
					else
						table.insert(abstract_forms, "ก๋าร" .. PAGENAME)
						table.insert(abstract_forms, "ก๋าน" .. PAGENAME)
						table.insert(abstract_forms, "กำ" .. PAGENAME) -- native
						table.insert(abstract_forms, "ความ" .. PAGENAME)
					end
				end
			else
				table.insert(abstract_forms, par1)
				table.insert(abstract_forms, par2)
				table.insert(abstract_forms, par3)
			end
		end
		table.insert(data.inflections, abstract_forms)
	end

end

pos_functions = function(args, data)

	local par1 = args; if par1 == "" then par1 = nil end
	local par2 = args; if par2 == "" then par2 = nil end
	local par3 = args; if par3 == "" then par3 = nil end
	local tlmode = require("Module:yesno")(args) -- Is the Thai form transliterated?
	local abstract_forms = {label = "abstract noun", accel = {pos = "noun", form = "abstract-noun"}}

	if par1 ~= "-" then
		if not par1 then
			if data.sc:getCode() == "Lana" then
				table.insert(abstract_forms, "ᨣᩤᩴ" .. PAGENAME) -- native
				table.insert(abstract_forms, "ᨤ᩠ᩅᩣ᩠ᨾ" .. PAGENAME)
			else
				if tlmode then
					table.insert(abstract_forms, "คำ" .. PAGENAME) -- native
					table.insert(abstract_forms, "ฅวาม" .. PAGENAME)
				else
					table.insert(abstract_forms, "กำ" .. PAGENAME) -- native
					table.insert(abstract_forms, "ความ" .. PAGENAME)
				end
			end
		else
			table.insert(abstract_forms, par1)
			table.insert(abstract_forms, par2)
			table.insert(abstract_forms, par3)
		end
		table.insert(data.inflections, abstract_forms)
	end

end

-- same logic
pos_functions = pos_functions

return export