Jump to content

Module:accel/pl

Wiktionary වෙතින්

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


return {
	generate = function(params, entry)
		entry.pronunc = "{{pl-p}}";
		if (params.form == "comparative" or (params.form == "superlative")) and (params.pos == "adjective") then
			entry.declension = "{{pl-decl-adj-auto}}";
		elseif (params.form == "abstract noun" or (params.form == "verbal noun")) and (params.pos == "verb") then
			entry.etymology = "From {{af|pl|" .. params.origin .. "|-}}."
			entry.pos_header = "Noun";
			entry.head = "{{pl-noun|n}}";
			entry.def = entry.make_def((params.form .. " of"));
			entry.declension = "{{pl-decl-noun-n|tantum=s}}";
		elseif params.form == "anterior adverbial participle" and (params.pos == "verb") then
			entry.pos_header = "Participle";
			entry.head = "{{pl-participle|aadv}}";
			entry.def = entry.make_def("inflection of", "||anterior|adverbial|part");
		elseif params.form == "contemporary adverbial participle" and (params.pos == "verb") then
			entry.pos_header = "Participle";
			entry.head = "{{pl-participle|cadv}}";
			entry.def = entry.make_def("inflection of", "||contemporary|adverbial|part");
		elseif params.form == "passive adjectival participle" and (params.pos == "verb") then
			entry.pos_header = "Participle";
			entry.head = "{{pl-participle|padj}}";
			entry.def = entry.make_def("inflection of", "||m|s|pasv|adjectival|part");
			entry.declension = "{{pl-decl-adj-auto}}";
		elseif params.form == "active adjectival participle" and (params.pos == "verb") then
			entry.pos_header = "Participle";
			entry.head = "{{pl-participle|aadj}}";
			entry.def = entry.make_def("inflection of", "||actv|adj|part");
			entry.declension = "{{pl-decl-adj-auto}}";
		end
	end
};
"https://si.wiktionary.org/w/index.php?title=Module:accel/pl&oldid=34035" වෙතින් සම්ප්‍රවේශනය කෙරිණි