Jump to content

Module:number list/data/urk

From Wiktionary, the free dictionary
local export = {numbers = {}}

local numbers = export.numbers


numbers[1] = {
	cardinal = "ซา",
	ordinal = "ลามูลา"
}

local units_cardinal = {"เซอ", "ดูวา", "ตีกฺา", "ปัยจ", "ลีมา", "นัม", "ตูโยฺะฮ", "ลาปัด", "เซอมีลัด"}

local function gen_ordinal(num)
	return "เกอ" .. num
end

for i = 2, 9 do
	numbers[i] = {
		cardinal = units_cardinal[i],
		ordinal = gen_ordinal(units_cardinal[i])
	}
end

local function gen_teens(num)
	return num .. "เบอลัยฮ"
end
for i = 11, 19 do
	local base_num = units_cardinal[i - 10]
	numbers[i] = {
		cardinal = gen_teens(base_num)
	}
end

local function gen_tens_cardinal(num)
	return num .. "ปูโละฮ"
end
for i, base_num in ipairs(units_cardinal) do
	numbers[i * 10] = {
		cardinal = gen_tens_cardinal(base_num)
	}
end
numbers[10].ordinal = gen_ordinal(numbers[10].cardinal)

numbers[100] = {
	cardinal = "ราตุยฮ",
}

return export