Module:aot-headword

Hello, you have come here looking for the meaning of the word Module:aot-headword. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:aot-headword, but we will also tell you about its etymology, its characteristics and you will know how to say Module:aot-headword in singular and plural. Everything you need to know about the word Module:aot-headword you have here. The definition of the word Module:aot-headword will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:aot-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("aot")
local PAGENAME = mw.title.getCurrentTitle().text
local script = lang:findBestScript(PAGENAME) -- Latn or Beng

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 = {},
		no_redundant_head_cat = not args
	}

	local beng = {label = "Bengali script", lang = lang, sc = require("Module:scripts").getByCode("Beng")}
	if args then table.insert(beng, args) end
	if args then table.insert(beng, args) end
	if args then table.insert(beng, args) end
	if args then table.insert(beng, args) end
	if #beng > 0 then table.insert(data.inflections, beng) end

	if pos_functions then
		pos_functions(args, data)
	end

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

end

pos_functions = function(args, data)

	--verb is always prefix
	data.heads = data.heads .. "-"

end

pos_functions = function(args, data)

	--classifier is always prefix
	data.heads = data.heads .. "-"

end

pos_functions = function(args, data)

	--adjective can be either type 1 or type 2
	if args ~= "1" and args ~= "2" then
		args = "?"
	end

	--adjective type 1 is prefix
	if args == "1" then
		data.heads = data.heads .. "-"
	end
	table.insert(data.inflections, {label = "type " .. args})

end

return export