Module:uz-headword

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

Used by {{uz-adj}}.


local export = {}

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

function export.adjectives(frame)
	local params = {
		head = {},
		 = {} -- intensive form
	}
	local args = require("Module:parameters").process(frame:getParent().args,
													  params)

	local lang = require("Module:languages").getByCode("uz")
	local title = mw.title.getCurrentTitle()
	local sc = lang:findBestScript(title.subpageText)
	local poscat = "adjectives"
	local positive_form = args.head or mw.title.getCurrentTitle().text
	local data = {
		lang = lang,
		pos_category = poscat,
		categories = {},
		heads = {positive_form},
		inflections = {}
	}

	if sc:getCode() == "Latn" then
		table.insert(data.inflections,
					 {label = "comparative", positive_form .. "roq"})
		table.insert(data.inflections,
					 {label = "superlative", "] " .. positive_form})
		if args then
			table.insert(data.inflections, {label = "intensive", args})
		end
	elseif sc:getCode() == "Cyrl" then
		table.insert(data.inflections,
					 {label = "comparative", positive_form .. "роқ"})
		table.insert(data.inflections,
					 {label = "superlative", "] " .. positive_form})
		if args then
			table.insert(data.inflections, {label = "intensive", args})
		end
	end

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

return export