Module:inh-headword

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


local export = {}

local lang = require("Module:languages").getByCode("inh")

function export.verb(frame)
	local params = {
		 = {list = true},
		 = {},
		 = {list = true},
		 = {list = true},
		 = {list = true},
	}
	
	local args = require("Module:parameters").process(frame:getParent().args, params)
	local data = {lang = lang, pos_category = "verbs", categories = {}, heads = args, genders = {}, inflections = {}}
	
	if args == "verb-forming suffixes" then
		data.pos_category = "suffixes"
		table.insert(data.categories, lang:getCanonicalName() .. " " .. args)
	end
	
	-- Aspects
	for i, val in ipairs(args) do
		if val == "impf" or val == "pf" then
			table.insert(data.genders, val)
			
			if val == "impf" then
				table.insert(data.categories, lang:getCanonicalName() .. " imperfective verbs")
			else
				table.insert(data.categories, lang:getCanonicalName() .. " perfective verbs")
			end
		else
			table.insert(data.genders, "?")
		end
	end
	
	-- Imperfective equivalent
	if args then
		args.label = "imperfective"
		table.insert(data.inflections, args)
	end
	
	-- Perfective equivalent
	if args then
		args.label = "perfective"
		table.insert(data.inflections, args)
	end
	
	return require("Module:headword").full_headword(data)
end

return export