Module:accel/la

Wiktionary වෙතින්

This module contains new entry creation rules for ලතින්; see WT:ACCEL for an overview, and Module:accel for information on creating new rules.


local pos_to_head_template = {
	["noun"] = "la-noun-form",
	["proper noun"] = "la-proper noun-form",
	["pronoun"] = "la-pronoun-form",
	["verb"] = "la-verb-form",
	["adjective"] = "la-adj-form",
	["participle"] = "la-part-form",
	["numeral"] = "la-num-form",
	["suffix"] = "la-suffix-form",
}

return {generate = function (params, entry)
	local head_template = pos_to_head_template[params.pos]
	if head_template then
		entry.head = '{{' .. head_template .. '|' .. params.target .. '}}'
	end
end}
"https://si.wiktionary.org/w/index.php?title=Module:accel/la&oldid=34020" වෙතින් සම්ප්‍රවේශනය කෙරිණි