Module:number list/data/tt

local export = {numbers = {}}

local numbers = export.numbers

numbers[0] = { cardinal = "нуль", ordinal = "нуленче" } numbers[1] = { cardinal = "бер", ordinal = "беренче" } numbers[2] = { cardinal = "ике", ordinal = "икенче" } numbers[3] = { cardinal = "өч", ordinal = "өченче" } numbers[4] = { cardinal = "дүрт", ordinal = "дүртенче" } numbers[5] = { cardinal = "биш", ordinal = "бишенче" } numbers[6] = { cardinal = "алты", ordinal = "алтынчы" } numbers[7] = { cardinal = "җиде", ordinal = "җиденче" } numbers[8] = { cardinal = "сигез", ordinal = "сигезенче" } numbers[9] = { cardinal = "тугыз", ordinal = "тугызынчы" } numbers[10] = { cardinal = "ун", ordinal = "унынчы" } numbers[20] = { cardinal = "егерме", ordinal = "егерменче" } numbers[30] = { cardinal = "утыз", ordinal = "утызынчы" } numbers[40] = { cardinal = "кырык", ordinal = "кырыгынчы" } numbers[50] = { cardinal = "илле", ordinal = "илленче" } numbers[60] = { cardinal = "алтмыш", ordinal = "алтмышынчы" } numbers[70] = { cardinal = "җитмеш", ordinal = "җитмешенче" } numbers[80] = { cardinal = "сиксән", ordinal = "сиксәненче" } numbers[90] = { cardinal = "туксан", ordinal = "туксанынчы" } for i = 1, 9 do	local tens = i * 10 for ones = 1, 9 do		local ones_cardinal = numbers[ones].cardinal local ones_ordinal = numbers[ones].ordinal local tens_cardinal = numbers[tens].cardinal if i == 1 then local cardinal = tens_cardinal .. ones_cardinal local ordinal = tens_cardinal .. ones_ordinal local number = {} numbers[tens + ones] = number number.cardinal = cardinal number.ordinal = ordinal else local cardinal = tens_cardinal .. " " .. ones_cardinal local ordinal = tens_cardinal .. " " .. ones_ordinal local number = {} numbers[tens + ones] = number number.cardinal = cardinal number.ordinal = ordinal end end end

numbers[100] = { cardinal = "йөз", ordinal = "йөзенче" }

for i = 2, 9 do	local hundreds = i * 100 local cardinal = numbers[i].cardinal .. " " .. numbers[100].cardinal local ordinal = numbers[i].cardinal .. " " .. numbers[100].ordinal local number = {} numbers[hundreds] = number number.cardinal = cardinal number.ordinal = ordinal end

numbers[1000] = { cardinal = "мең", ordinal = "меңенче" } return export