Jump to content

Module:Sandbox/Quantum10000

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Quantum10000 (talk | contribs) at 19:00, 19 June 2023. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
local p = {}
p.noun_declension = function(frame)
	local str = frame.args.input
	
	-- nu-n=>n, ku-k=>k
	if string.len(str) > 3 and string.sub(str, 1, 1) == string.sub(str, 4, 4) then
		if string.sub(str, 2, 2) == 'u' and string.sub(str, 3, 3) == '&' then
		str = string.gsub(str, "ee", "E") -- str = string.sub(str, 4)
		end
	end
	
	str = string.gsub(str, "&", "")
    return str
end

return p