Module:number list/data/anrdg

From Linguifex
< Module:number list
Revision as of 05:03, 22 November 2023 by Astaryuu (talk | contribs) (Created page with "local export = {numbers = {}} local numbers = export.numbers -- Delete any number types that don't apply. numbers[0] = { cardinal = "niki", ordinal = "nih", } numbers[1] = { cardinal = "aki", ordinal = "akan", } numbers[2] = { cardinal = "de", ordinal = "dune", } numbers[3] = { cardinal = "ra", ordinal = "lene", } numbers[4] = { cardinal = "ko", ordinal = "kenen", } numbers[5] = { cardinal = "ming", ordinal = "miná", } numbers[6] = { cardinal = "rok...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Lua error at line 141: attempt to index global 'number' (a nil value).


local export = {numbers = {}}

local numbers = export.numbers

-- Delete any number types that don't apply.
numbers[0] = {
	cardinal = "niki",
	ordinal = "nih",
}

numbers[1] = {
	cardinal = "aki",
	ordinal = "akan",
}

numbers[2] = {
	cardinal = "de",
	ordinal = "dune",
}

numbers[3] = {
	cardinal = "ra",
	ordinal = "lene",
}

numbers[4] = {
	cardinal = "ko",
	ordinal = "kenen",
}

numbers[5] = {
	cardinal = "ming",
	ordinal = "miná",
}

numbers[6] = {
	cardinal = "roka",
	ordinal = "rikun",
}

numbers[7] = {
	cardinal = "pita",
	ordinal = "péngga",
}

numbers[8] = {
	cardinal = "hari",
	ordinal = "bari",
}

numbers[9] = {
	cardinal = "nyan",
	ordinal = "nani",
}

numbers[10] = {
	cardinal = "kani",
	ordinal = "kanih",
}

numbers[11] = {
	cardinal = "kero",
	ordinal = "tana",
}

numbers[12] = {
	cardinal = "kedre",
	ordinal = "kedi",
}

numbers[13] = {
	cardinal = "akira",
	ordinal = "malene",
}

numbers[14] = {
	cardinal = "akiko",
	ordinal = "makenen",
}

numbers[15] = {
	cardinal = "akiming",
	ordinal = "maminá",
}

numbers[16] = {
	cardinal = "akiroka",
	ordinal = "marikun",
}

numbers[17] = {
	cardinal = "akipita",
	ordinal = "mapéngga",
}

numbers[18] = {
	cardinal = "akihari",
	ordinal = "mabari",
}

numbers[19] = {
	cardinal = "akinyan",
	ordinal = "manani",
}

local compose, decompose = mw.ustring.toNFC, mw.ustring.toNFD

local function unpack_ipairs(t)
	local i = 0
	return function()
		i = i + 1
		if t[i] then
			return i, unpack(t[i])
		end
	end
end

for i, tens_cardinal, tens_ordinal in unpack_ipairs {
	{ "dekan", "dukan" },
	{ "rakan", "lekan" },
	{ "kokan", "kekan" },
	{ "mingkan", "mikan" },
	{ "rokakan", "rikan" },
	{ "pitakan", "pékan" },
	{ "harikan", "bakan" },
	{ "nanikan", "nakan" },
} do
	local tens = (i + 1) * 10
	numbers[tens] = {
		cardinal = tens_cardinal .. "i",
		ordinal = tens_ordinal .. "ih"
	}
	local elevens = tens + 1
	numbers[elevens] = {
		cardinal = tens_cardinal .. "aki",
		ordinal = tens_ordinal
	}
	for ones = 2, 9 do
		local ones_cardinal = numbers[ones].cardinal
		local ones_ordinal = numbers[ones].ordinal
		number.ordinal = tens_ordinal .. ones_ordinal
		number.cardinal = tens_cardinal .. ones_cardinal
	end
end

numbers[100] = {
	cardinal = "gung",
	ordinal = "gung",
}

numbers[200] = {
	cardinal = "degung",
	ordinal = "dugung",
}

numbers[300] = {
	cardinal = "ragung",
	ordinal = "legung",
}

numbers[400] = {
	cardinal = "kogung",
	ordinal = "kegung",
}

numbers[500] = {
	cardinal = "minggung",
	ordinal = "migung",
}

numbers[600] = {
	cardinal = "rokagung",
	ordinal = "rigung",
}

numbers[700] = {
	cardinal = "pitagung",
	ordinal = "pégung",
}

numbers[800] = {
	cardinal = "harigung",
	ordinal = "bagung",
}

numbers[900] = {
	cardinal = "nyanggung",
	ordinal = "nagung",
}

numbers[1000] = {
	cardinal = "rong",
	ordinal = "rong",
}

numbers[2000] = {
	cardinal = "derong",
	ordinal = "durong",
}

numbers[3000] = {
	cardinal = "rarong",
	ordinal = "lerong",
}

numbers[4000] = {
	cardinal = "korong",
	ordinal = "kerong",
}

numbers[5000] = {
	cardinal = "mingrong",
	ordinal = "mirong",
}

numbers[6000] = {
	cardinal = "rokarong",
	ordinal = "rilong",
}

numbers[7000] = {
	cardinal = "pitarong",
	ordinal = "pérong",
}

numbers[8000] = {
	cardinal = "harirong",
	ordinal = "barong",
}

numbers[9000] = {
	cardinal = "nyanrong",
	ordinal = "narong",
}

numbers[10000] = {
	cardinal = "móku",
	ordinal = "móku",
}

--[[
numbers[] = {
	cardinal = "",
	ordinal = "",
	fractional = "",
}

numbers[] = {
	cardinal = "",
	ordinal = "",
	fractional = "",
}
--]]

return export