Jump to content

Module:Sandbox/Quantum10000

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by Quantum10000 (talk | contribs) at 19:25, 19 June 2023. The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
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.sub(str, 4)
			end
		end
	str = string.gsub(str, "&", "")
    return str
end

return p