Jump to content

Module:accel/he

From Wiktionary, the free dictionary

This module contains new entry creation rules for Hebrew; see WT:ACCEL for an overview, and Module:accel for information on creating new rules.


return {generate = function (params, entry)
	local formparam = {
		["p"] = "|n=p|s=i",
		["s|cons"] = "|n=s|s=c",
		["p|cons"] = "|n=p|s=c",
	}
	
	if formparam[params.form] then
		entry.def = "{{he-noun form of|" .. params.origin_pagename
			.. (params.origin ~= params.origin_pagename and "|wv=" .. params.origin or "")
			.. formparam[params.form] .. "}}"
	end
end}