বিষয়বস্তুতে চলুন

মডিউল:number list/data/eo

উইকিঅভিধান, মুক্ত অভিধান থেকে

এই মডিউলের জন্য মডিউল:number list/data/eo/নথি-এ নথিপত্র তৈরি করা হয়ে থাকতে পারে

local export = {numbers = {}}

local numbers = export.numbers

numbers[0] = {
	cardinal = "nul",
	ordinal = "nula",
}

numbers[1] = {
	cardinal = "unu",
}

numbers[2] = {
	cardinal = "du",
}

numbers[3] = {
	cardinal = "tri",
}

numbers[4] = {
	cardinal = "kvar",
}

numbers[5] = {
	cardinal = "kvin",
}

numbers[6] = {
	cardinal = "ses",
}

numbers[7] = {
	cardinal = "sep",
}

numbers[8] = {
	cardinal = "ok",
}

numbers[9] = {
	cardinal = "naŭ",
}

for i = 1, 9 do
	numbers[i].ordinal = numbers[i].cardinal .. "a"
	numbers[i].adverbial = numbers[i].cardinal .. "e"
	numbers[i].multiplier = {numbers[i].cardinal .. "obla", numbers[i].cardinal .. "opa"}
	numbers[i].fractional = {numbers[i].cardinal .. "ona", numbers[i].cardinal .. "ono"}
	
	local tens_cardinal = "dek"
	if i ~= 1 then
		tens_cardinal = numbers[i].cardinal .. "dek"
		numbers[i * 10] = {
			cardinal = tens_cardinal,
			ordinal = tens_cardinal .. "a",
		}
		
		numbers[i * 100] = {
			cardinal = numbers[i].cardinal .. "cent",
			ordinal = numbers[i].cardinal .. "centa",
		}
	end
	
	for ones = 1, 9 do
		numbers[i * 10 + ones] = {
			cardinal = tens_cardinal .. " " .. numbers[ones].cardinal,
			ordinal = tens_cardinal .. "-" .. numbers[ones].cardinal .. "a",
		}
	end
end

numbers[10] = {
	cardinal = "dek",
	ordinal = "deka",
	adverbial = "deke",
	multiplier = {"dekobla", "dekopa"},
	fractional = {"dekona", "dekono"},
}

numbers[100] = {
	cardinal = "cent",
	ordinal = "centa",
	adverbial = "cente",
	multiplier = {"centobla", "centopa"},
	fractional = {"centona", "centono"},
}

numbers[1000] = {
	cardinal = "mil",
	ordinal = "mila",
	adverbial = "mile",
	multiplier = {"milobla", "milopa"},
	fractional = {"milona", "milono"},
}

return export