Module:User:Taokailam/TestNumber

local export = {numbers = {}}

local numbers = export.numbers

numbers[0] = { cardinal = "אֶפֶס", }

numbers[1] = { cardinal = {"אֶחֶת" ,"אַחַת"}, ordinal = "רִאשׁוֹן", }

numbers[2] = { cardinal = {"שְׁנַיִם", ""}, ordinal = {"second", "deutero-"}, }

numbers[3] = { cardinal = "three", ordinal = {"third", "trito-"}, }

numbers[4] = { cardinal = "four", ordinal = {"fourth", "tetarto-"}, }

numbers[5] = { cardinal = "five", ordinal = {"fifth", "pempto-"}, }

numbers[6] = { cardinal = "six", ordinal = {"sixth", "ecto-"}, }

numbers[7] = { cardinal = "seven", ordinal = {"seventh", "ebdomo-"}, }

numbers[8] = { cardinal = "eight", ordinal = {"eighth", "ogdo-"}, }

numbers[9] = { cardinal = "nine", ordinal = {"ninth", "enato-"}, }

numbers[10] = { cardinal = "ten", ordinal = {"tenth", "decato-"}, }

numbers[11] = { cardinal = "eleven", ordinal = {"eleventh", "endecato-"}, }

numbers[12] = { cardinal = "twelve", ordinal = {"twelfth", "dozenth", "dodecato-"}, }

numbers[13] = { cardinal = "thirteen", ordinal = "thirteenth",	multiplier = "thirteenfold", }

numbers[14] = { cardinal = "fourteen", ordinal = "fourteenth", }

numbers[15] = { cardinal = "fifteen", ordinal = "fifteenth", }

numbers[16] = { cardinal = "sixteen", ordinal = "sixteenth", }

numbers[17] = { cardinal = "seventeen", ordinal = "seventeenth", }

numbers[18] = { cardinal = "eighteen", ordinal = "eighteenth", }

numbers[19] = { cardinal = "nineteen", ordinal = "nineteenth", }

for i, tens_cardinal in ipairs { "twenty", "thirty", "forty", "fifty", "sixty", "seventy", "eighty", "ninety", } do	local tens = (i + 1) * 10 numbers[tens] = { cardinal = tens_cardinal, ordinal = tens_cardinal:gsub("y$", "ieth"), }	for ones = 1, 9 do		numbers[tens + ones] = { cardinal = tens_cardinal .. "-" .. numbers[ones].cardinal, ordinal = tens_cardinal .. "-" .. numbers[ones].ordinal[1], }	end end

numbers[100] = { cardinal = "hundred", ordinal = "hundredth", multiplier = {"centuple","hundredfold"}, }

numbers[101] = { cardinal = {"one hundred and one", "one hundred one", "hundred and one", "hundred one"}, ordinal = {"one hundred and first", "one hundred first", "hundred-and-first", "hundred-first"}, }

numbers[110] = { cardinal = {"eleventy"}, }

numbers[120] = { cardinal = {"twelfty"}, }

numbers[200] = { cardinal = "two hundred", }

numbers[300] = { cardinal = "three hundred", }

numbers[400] = { cardinal = "four hundred", }

numbers[500] = { cardinal = "five hundred", }

numbers[600] = { cardinal = "six hundred", }

numbers[700] = { cardinal = "seven hundred", }

numbers[800] = { cardinal = "eight hundred", }

numbers[900] = { cardinal = "nine hundred", }

numbers[1000] = { cardinal = "thousand", ordinal = "thousandth", }

numbers[1001] = { cardinal = {"one thousand and one", "one thousand one", "thousand and one", "thousand one"}, ordinal = {"one thousand and first", "thousand-and-first", "thousand-first"}, }

numbers[1100] = { cardinal = "eleven hundred", }

numbers[1200] = { cardinal = "twelve hundred", }

numbers[1300] = { cardinal = "thirteen hundred", }

numbers[1400] = { cardinal = "fourteen hundred", }

numbers[1500] = { cardinal = "fifteen hundred", }

numbers[1600] = { cardinal = "sixteen hundred", }

numbers[1700] = { cardinal = "seventeen hundred", }

numbers[1800] = { cardinal = "eighteen hundred", }

numbers[1900] = { cardinal = "nineteen hundred", }

numbers[2000] = { cardinal = "two thousand", ordinal = "two-thousandth", }

numbers[2100] = { cardinal = "twenty-one hundred", }

numbers[2200] = { cardinal = "twenty-two hundred", }

numbers[2300] = { cardinal = "twenty-three hundred", }

numbers[3000] = { cardinal = "three thousand", ordinal = "three-thousandth", }

numbers[4000] = { cardinal = "four thousand", ordinal = "four-thousandth", }

numbers[5000] = { cardinal = "five thousand", }

numbers[6000] = { cardinal = "six thousand", }

numbers[7000] = { cardinal = "seven thousand", }

numbers[8000] = { cardinal = "eight thousand", }

numbers[9000] = { cardinal = "nine thousand", }

numbers[9999] = { cardinal = {"nine thousand nine hundred and ninety-nine", "nine thousand nine hundred ninety-nine", "ninety-nine hundred and ninety-nine"}, }

numbers[10000] = { cardinal = {"ten thousand", "myriad"}, ordinal = {"ten-thousandth", "myriadth"}, }

numbers[11000] = { cardinal = "eleven thousand", }

numbers[50000] = { cardinal = "fifty thousand", }

numbers[100000] = { cardinal = {"hundred thousand", "lakh"}, }

numbers[1000000] = { cardinal = "million", }

numbers[10000000] = { cardinal = {"ten million", "crore"}, }

numbers[100000000] = { cardinal = "one hundred million", }

numbers[1000000000] = { cardinal = {"billion", "milliard", "thousand million"}, }

numbers[1000000000000] = { cardinal = {"trillion", "billion"}, }

return export