Module:number list/data/arz

local export = {}

local numbers = {} export.numbers = numbers

numbers[0] = { cardinal = "صفر" }

numbers[1] = { cardinal = "واحد", ordinal = "أول" }

numbers[2] = { cardinal = "اتنين", ordinal = "تاني", fractional = "نص" }

numbers[3] = { cardinal = "تلاتة", ordinal = "تالت", fractional = "تلت" }

numbers[4] = { cardinal = "أربعة", ordinal = "رابع", fractional = "ربع" }

numbers[5] = { cardinal = "خمسة", ordinal = "خامس", fractional = "خمس" }

numbers[6] = { cardinal = "ستة", ordinal = "سادس", fractional = "سدس" }

numbers[7] = { cardinal = "سبعة", ordinal = "سابع", fractional = "سبع" }

numbers[8] = { cardinal = "تمانية", ordinal = "تامن", fractional = "تمن" }

numbers[9] = { cardinal = "تسعة", ordinal = "تاسع", fractional = "تسع" }

numbers[10] = { cardinal = "عشرة", ordinal = "عاشر", fractional = "عشر" }

numbers[11] = { cardinal = "حداشر", }

numbers[12] = { cardinal = "اتناشر", }

numbers[13] = { cardinal = "تلاتاشر", }

numbers[14] = { cardinal = "أربعتاشر", }

numbers[15] = { cardinal = "خمستاشر", }

numbers[16] = { cardinal = "ستاشر", }

numbers[17] = { cardinal = "سبعتاشر", }

numbers[18] = { cardinal = "تمنتاشر", }

numbers[19] = { cardinal = "تسعتاشر", }

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 in unpack_ipairs { { "عشرين"}, { "تلاتين" }, { "أربعين" }, { "خمسين" }, { "ستين" }, { "سبعين" }, { "تمنين" }, { "تسعين" }, } do	local tens = (i + 1) * 10 numbers[tens] = { cardinal = tens_cardinal, }	local suffix = (" و" .. tens_cardinal) local one_word_cardinal = suffix:sub(-1) ~= " "

for ones = 1, 9 do		local ones_cardinal = numbers[ones].cardinal local cardinal = ones_cardinal .. suffix local number = {} numbers[tens + ones] = number number.cardinal = cardinal end end

numbers[100] = { cardinal = "مية" }

numbers[200] = { cardinal = "ميتين" }

numbers[1000] = { cardinal = "ألف" }

numbers[2000] = { cardinal = "ألفين" }

numbers[1000000] = { cardinal = "مليون" }

numbers[1000000000] = { cardinal = "مليار" }

return export