Module:User:Santi2222/ikx-headword

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

function export.noun(frame)
	local params = {
		 = {},
		 = {},
		 = {}
	}
	
	local args = require("Module:parameters").process(frame:getParent().args, params)
	
	if not args then
		error("Please provide a headoword with the appropriate tone marks")
	end
	if not args then
		error("Please provide a stem.")
	elseif args:sub(-1) ~= "-" then
		error("The stem must end with a dash.")
	end

	local data = {lang = lang, pos_category = "nouns", categories = {}, heads = {args}, inflections = {}}
	
	--insert the stem
	local stem = {label = "stem", {term = args, nolinkinfl = true}}
	table.insert(data.inflections, stem)
	
	--insert the plural, if it exists
	if args then
		local plural = {label = "plural", args, request = true}
		table.insert(data.inflections, plural)
	end
	
	return require("Module:headword").full_headword(data)
end

return export