Module:number list/data/vot

local export = {numbers = {}} local numbers = export.numbers

numbers[0] = { cardinal = "nolʹ" } numbers[1] = { cardinal = "ühs", ordinal = { "esimein", "esimäin" } } numbers[2] = { cardinal = "kahs", ordinal = "tõin" } numbers[3] = { cardinal = "kõlmõd", ordinal = { "kõlmõz", "kõlmaiz" } } numbers[4] = { cardinal = "nelʹlʹe", ordinal = { "nelʹlʹez", "nelʹlʹäiz" } } numbers[5] = { cardinal = "viis", ordinal = { "viijjez", "viijjäiz" } } numbers[6] = { cardinal = "kuus", ordinal = { "kuuvvõz", "kuuvvaiz" } } numbers[7] = { cardinal = "seittse", ordinal = { "seittsemez", "seittsemäiz" } } numbers[8] = { cardinal = "kahõsa", ordinal = { "kahõssamaz", "kahõssamaiz" } } numbers[9] = { cardinal = "ühesä", ordinal = { "ühessämäz", "ühessämäiz" } } numbers[10] = { cardinal = "tšümme", ordinal = { "tšümmenez", "tšümmenäiz" } } numbers[11] = { cardinal = "ühsteiššümed", ordinal = "ühesteiššümenez" } numbers[12] = { cardinal = "kahsteiššümed", ordinal = "kahõsteiššümenez" } numbers[13] = { cardinal = "kõlmõdteiššümed", ordinal = "kõlmõzteiššümenez" } numbers[14] = { cardinal = "nelʹlʹeteiššümed", ordinal = "nelʹlʹeteiššümenez" } numbers[15] = { cardinal = "viisteiššümed", ordinal = "viijsteiššümenez" } numbers[16] = { cardinal = "kuusteiššümed", ordinal = "kuusteiššümenez" } numbers[17] = { cardinal = "seittseteiššümed", ordinal = "seittseteiššümenez" } numbers[18] = { cardinal = "kahõsateiššümed", ordinal = "kahõsateiššümenez" } numbers[19] = { cardinal = "ühesäteiššümed", ordinal = "ühesäteiššümenez" } numbers[20] = { cardinal = "kahtšümmed", ordinal = "kahtšümmenez" } numbers[30] = { cardinal = "kõlmõdtšümmed" } --, ordinal = *"kõlmõztšümmenez" } numbers[40] = { cardinal = "nelʹlʹetšümmed" } --, ordinal = *"nelʹlʹeztšümmenez" } numbers[50] = { cardinal = "viistšümmed" } --, ordinal = *"viijeztšümmenez" } numbers[60] = { cardinal = "kuustšümmed" } --, ordinal = *"kuvvõztšümmenez" } numbers[70] = { cardinal = "seittsetšümmed" } --, ordinal = *"seittsemeztšümmenez" } numbers[80] = { cardinal = "kahõsatšümmed" } --, ordinal = *"kahõssamaztšümmenez" } numbers[90] = { cardinal = "ühesätšümmed" } --, ordinal = *"ühessämäztšümmenez" } numbers[100] = { cardinal = "sata" } numbers[1000] = { cardinal = "tuhattõ" }

local function join(a, sep, b)	if type(a) == "string" and type(b) == "string" then return a .. sep .. b	end if type(a) == "string" then return join({a}, sep, b) end if type(b) == "string" then return join(a, sep, {b}) end

local r = {} for ai, aa in ipairs(a) do		for bi, bb in ipairs(b) do table.insert(r, aa .. sep .. bb) end end return r end

for decades=20,90,10 do	for units=1,9 do		if numbers[decades] then numbers[decades + units] = {} if numbers[decades].cardinal then numbers[decades + units].cardinal = join(numbers[decades].cardinal, " ", numbers[units].cardinal) end if numbers[decades].ordinal then numbers[decades + units].ordinal = join(numbers[decades].ordinal, " ", numbers[units].ordinal) end end end end

return export