Module:nsk-utilities

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

This module needs documentation.
Please document this module by describing its purpose and usage on the documentation page.

local export={}

local long_to_short = {
	 = "ᐃ",
	 = "ᐅ",
	 = "ᐊ",
	 = "ᐱ",
	 = "ᐳ",
	 = "ᐸ",
	 = "ᑎ",
	 = "ᑐ",
	 = "ᑕ",
	 = "ᑭ",
	 = "ᑯ",
	 = "ᑲ",
	 = "ᒋ",
	 = "ᒍ",
	 = "ᒐ",
	 = "ᒥ",
	 = "ᒧ",
	 = "ᒪ",
	 = "ᓂ",
	 = "ᓄ",
	 = "ᓇ",
	 = "ᓯ",
	 = "ᓱ",
	 = "ᓴ",
	 = "ᔨ",
	 = "ᔪ",
	 = "ᔭ",
	 = "ᕆ",
	 = "ᕈ",
	 = "ᕋ",
	 = "ᔑ",
	 = "ᔓ",
	 = "ᔕ",
	 = "ᕕ",
	 = "ᕗ",
	 = "ᕙ",
	 = "ᕡ",
	 = "ᕤ",
	 = "ᕦ",
	 = "ᓕ",
	 = "ᓗ",
	 = "ᓚ",
	 = "ᐏ",
	 = "ᐓ",
	 = "ᐘ",
	 = "ᕿ",
	 = "ᖁ",
	 = "ᖃ",
}

local short_to_long = {
	 = "ᐛ",
	 = "ᐛ",
}

local long = "ᐄᐆᐋᐲᐴᐹᑏᑑᑖᑮᑰᑳᒌᒎᒑᒦᒨᒫᓃᓅᓈᓰᓲᓵᔩᔫᔮᕇᕉᕌᔒᔔᔖᕖᕘᕚᕢᕥᕧᓖᓘᓛᐐᐔᐙᖀᖂᖄ"
local short = "ᐗᐘ"

function export.remove_accents(text)
	if type(text) == "table" then
		text = text.args
	end
	text = mw.ustring.gsub(text,"",long_to_short)
	text = mw.ustring.gsub(text,"",short_to_long)
	return text
end

export.translit = require("Module:nsk-translit").tr

return export