local p = {}
-- rimuove i diacritici dal pinyin
local dp={
	['ā']='a',['á']='a',['ǎ']='a',['à']='a',
	['ō']='o',['ó']='o',['ǒ']='o',['ò']='o',
	['ē']='e',['é']='e',['ě']='e',['è']='e',
	['ī']='i',['í']='i',['ǐ']='i',['ì']='i',
	['ū']='u',['ú']='u',['ǔ']='u',['ù']='u',
	['ǖ']='ü',['ǘ']='ü',['ǚ']='ü',['ǜ']='ü'
};

function p.nodiacritic(pinyin)
	if type(pinyin) == "table" then
	pinyin = pinyin.args[1]
	end
	return (mw.ustring.gsub(pinyin, '.', dp))
end
return p