本模块包含西里西亞語的新條目建立規則;有關概述,請參見en:WT:ACCEL,有關創建新規則的資訊,請參見en:Module:accel


return {
	generate = function(params, entry)
		entry.pronunc = "{{szl-p}}";
		if (params.form == "comparative" or (params.form == "superlative")) and (params.pos == "形容詞") then
			entry.declension = "{{szl-decl-adj-auto}}";
		elseif (params.form == "abstract noun" or (params.form == "verbal noun")) and (params.pos == "動詞") then
			entry.etymology = "源自 {{af|szl|" .. params.origin .. "|-}}。"
			entry.pos_header = "名詞";
			entry.head = "{{szl-noun|n}}";
			entry.def = entry.make_def((params.form .. " of"));
		elseif params.form == "anterior adverbial participle" and (params.pos == "動詞") then
			entry.pos_header = "分詞";
			entry.head = "{{szl-participle|aadv}}";
			entry.def = entry.make_def("inflection of", "||anterior|adverbial|part");
		elseif params.form == "contemporary adverbial participle" and (params.pos == "動詞") then
			entry.pos_header = "分詞";
			entry.head = "{{szl-participle|cadv}}";
			entry.def = entry.make_def("inflection of", "||contemporary|adverbial|part");
		elseif params.form:find("passive adjectival participle$") and (params.pos == "動詞") then
			entry.pos_header = "分詞";
			entry.head = "{{szl-participle|pass}}";
			local _, _, form = params.form:find("(.-)|passive adjectival participle$");
			if form == nil or form == "m|s" or form == "s|m" then
				entry.def = entry.make_def("inflection of", "||m|s|pasv|adjectival|part");
				entry.declension = "{{szl-decl-adj-auto}}";
			else
				entry.def = entry.make_def("inflection of", "||" .. form);
			end
		elseif params.form:find("active adjectival participle$") and (params.pos == "動詞") then
			entry.pos_header = "分詞";
			entry.head = "{{szl-participle|act}}";
			local _, _, form = params.form:find("(.-)|active adjectival participle$");
			if form == nil or form == "m|s" or form == "s|m" then
				entry.def = entry.make_def("inflection of", "||actv|adj|part");
				entry.declension = "{{szl-decl-adj-auto}}";
			else
				entry.def = entry.make_def("inflection of", "||" .. form);
			end
		end
	end
};