Module:User:Surjection/urj-pro-util

Hello, you have come here looking for the meaning of the word Module:User:Surjection/urj-pro-util. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:User:Surjection/urj-pro-util, but we will also tell you about its etymology, its characteristics and you will know how to say Module:User:Surjection/urj-pro-util in singular and plural. Everything you need to know about the word Module:User:Surjection/urj-pro-util you have here. The definition of the word Module:User:Surjection/urj-pro-util will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:User:Surjection/urj-pro-util, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.


local export = {}

local function convert_to_eve(form)
	form = mw.ustring.gsub(form, "*+", function(m) return mw.ustring.gsub(m, "ə", "ə̑") end)
	return form
end

local function convert_to_ued(form)
	form = mw.ustring.gsub(form, "", { = "i",  = "i",  = "ś",  = "i̮"})
	return form
end

local function convert_to_uew(form)
	form = mw.ustring.gsub(form, "", { = "γ",  = "e",  = "i",  = "δ",  = "δ̕"})
	return form
end

-- Converts 'pseudo-EVE' (same as EVE except for *ə representing both *ə and *ə̑)
--		"eve": true EVE
--		"ued": UED/Aikio
--		"uew": UEW
-- note: schwas must be U+0259, not U+01DD
function export.get_alternative_transcriptions(form)
	return {
		eve = convert_to_eve(form),
		ued = convert_to_ued(form),
		uew = convert_to_uew(form),
	}
end

return export