This module contains data on various types of numbers in Malecite-Passamaquoddy.

จำนวน เชิงการนับ เชิงอันดับที่ เชิงกริยาวิเศษณ์ Adnominal
1 pesq, neqt amsqahsewey neqt pesq, pesqon
2 nis, tapu nisewey nisokehs nisuwok, nisonul
3 nihi, 'sis nuhuwewey nihikehs nuhuwok, nohonul
4 new newewey newokehs newwok, newonul
5 nan nanewey nanokehs nanuwok, nanonul
6 kamahcin kamahcin kehsewey kamahcin kehs kamahcin kehsuwok, kamahcin kehsonul
7 oluwikonok oluwikonok kehsewey oluwikonok kehs oluwikonok kehsuwok, oluwikonok kehsonul
8 oqomolcin oqomolcin kehsewey oqomolcin kehs oqomolcin kehsuwok, oqomolcin kehsonul
9 esqonatek esqonatek kehsewey esqonatek kehs esqonatek kehsuwok, esqonatek kehsonul
10 'qotinsk 'qotinsk kehsewey 'qotinsk kehs 'qotinsk
11 'qotanku 'qotanku kehsewey 'qotanku kehs 'qotanku
12 nisanku nisanku kehsewey nisanku kehs nisanku
13 'sanku 'sanku kehsewey 'sanku kehs 'sanku
14 newanku newanku kehsewey newanku kehs newanku
15 nananku nananku kehsewey nananku kehs nananku
16 kamahcin kehsanku kamahcin kehsanku kehsewey kamahcin kehsanku kehs kamahcin kehsanku
17 oluwikonok kehsanku oluwikonok kehsanku kehsewey oluwikonok kehsanku kehs oluwikonok kehsanku
18 oqomolcin kehsanku oqomolcin kehsanku kehsewey oqomolcin kehsanku kehs oqomolcin kehsanku
19 esqonatek kehsanku esqonatek kehsanku kehsewey esqonatek kehsanku kehs esqonatek kehsanku
20 nisinsk nisinsk kehsewey nisinsk kehs nisinsk
21 nisinsk cel pesq, nisinsk cel neqt nisinsk cel pesq kehsewey, nisinsk cel neqt kehsewey nisinsk cel neqt nisinsk cel pesq, nisinsk cel neqt
22 nisinsk cel nis, nisinsk cel tapu nisinsk cel nis kehsewey, nisinsk cel tapu kehsewey nisinsk cel nisokehs nisinsk cel nis, nisinsk cel tapu
23 nisinsk cel nihi, nisinsk cel 'sis nisinsk cel nihi kehsewey, nisinsk cel 'sis kehsewey nisinsk cel nihikehs nisinsk cel nihi, nisinsk cel 'sis
24 nisinsk cel new nisinsk cel new kehsewey nisinsk cel newokehs nisinsk cel new
25 nisinsk cel nan nisinsk cel nan kehsewey nisinsk cel nanokehs nisinsk cel nan
26 nisinsk cel kamahcin nisinsk cel kamahcin kehsewey nisinsk cel kamahcin kehs nisinsk cel kamahcin
27 nisinsk cel oluwikonok nisinsk cel oluwikonok kehsewey nisinsk cel oluwikonok kehs nisinsk cel oluwikonok
28 nisinsk cel oqomolcin nisinsk cel oqomolcin kehsewey nisinsk cel oqomolcin kehs nisinsk cel oqomolcin
29 nisinsk cel esqonatek nisinsk cel esqonatek kehsewey nisinsk cel esqonatek kehs nisinsk cel esqonatek
30 'sinsk 'sinsk kehsewey 'sinsk kehs 'sinsk
31 'sinsk cel pesq, 'sinsk cel neqt 'sinsk cel pesq kehsewey, 'sinsk cel neqt kehsewey 'sinsk cel neqt 'sinsk cel pesq, 'sinsk cel neqt
32 'sinsk cel nis, 'sinsk cel tapu 'sinsk cel nis kehsewey, 'sinsk cel tapu kehsewey 'sinsk cel nisokehs 'sinsk cel nis, 'sinsk cel tapu
33 'sinsk cel nihi, 'sinsk cel 'sis 'sinsk cel nihi kehsewey, 'sinsk cel 'sis kehsewey 'sinsk cel nihikehs 'sinsk cel nihi, 'sinsk cel 'sis
34 'sinsk cel new 'sinsk cel new kehsewey 'sinsk cel newokehs 'sinsk cel new
35 'sinsk cel nan 'sinsk cel nan kehsewey 'sinsk cel nanokehs 'sinsk cel nan
36 'sinsk cel kamahcin 'sinsk cel kamahcin kehsewey 'sinsk cel kamahcin kehs 'sinsk cel kamahcin
37 'sinsk cel oluwikonok 'sinsk cel oluwikonok kehsewey 'sinsk cel oluwikonok kehs 'sinsk cel oluwikonok
38 'sinsk cel oqomolcin 'sinsk cel oqomolcin kehsewey 'sinsk cel oqomolcin kehs 'sinsk cel oqomolcin
39 'sinsk cel esqonatek 'sinsk cel esqonatek kehsewey 'sinsk cel esqonatek kehs 'sinsk cel esqonatek
40 newinsk newinsk kehsewey newinsk kehs newinsk
41 newinsk cel pesq, newinsk cel neqt newinsk cel pesq kehsewey, newinsk cel neqt kehsewey newinsk cel neqt newinsk cel pesq, newinsk cel neqt
42 newinsk cel nis, newinsk cel tapu newinsk cel nis kehsewey, newinsk cel tapu kehsewey newinsk cel nisokehs newinsk cel nis, newinsk cel tapu
43 newinsk cel nihi, newinsk cel 'sis newinsk cel nihi kehsewey, newinsk cel 'sis kehsewey newinsk cel nihikehs newinsk cel nihi, newinsk cel 'sis
44 newinsk cel new newinsk cel new kehsewey newinsk cel newokehs newinsk cel new
45 newinsk cel nan newinsk cel nan kehsewey newinsk cel nanokehs newinsk cel nan
46 newinsk cel kamahcin newinsk cel kamahcin kehsewey newinsk cel kamahcin kehs newinsk cel kamahcin
47 newinsk cel oluwikonok newinsk cel oluwikonok kehsewey newinsk cel oluwikonok kehs newinsk cel oluwikonok
48 newinsk cel oqomolcin newinsk cel oqomolcin kehsewey newinsk cel oqomolcin kehs newinsk cel oqomolcin
49 newinsk cel esqonatek newinsk cel esqonatek kehsewey newinsk cel esqonatek kehs newinsk cel esqonatek
50 naninsk naninsk kehsewey naninsk kehs naninsk
51 naninsk cel pesq, naninsk cel neqt naninsk cel pesq kehsewey, naninsk cel neqt kehsewey naninsk cel neqt naninsk cel pesq, naninsk cel neqt
52 naninsk cel nis, naninsk cel tapu naninsk cel nis kehsewey, naninsk cel tapu kehsewey naninsk cel nisokehs naninsk cel nis, naninsk cel tapu
53 naninsk cel nihi, naninsk cel 'sis naninsk cel nihi kehsewey, naninsk cel 'sis kehsewey naninsk cel nihikehs naninsk cel nihi, naninsk cel 'sis
54 naninsk cel new naninsk cel new kehsewey naninsk cel newokehs naninsk cel new
55 naninsk cel nan naninsk cel nan kehsewey naninsk cel nanokehs naninsk cel nan
56 naninsk cel kamahcin naninsk cel kamahcin kehsewey naninsk cel kamahcin kehs naninsk cel kamahcin
57 naninsk cel oluwikonok naninsk cel oluwikonok kehsewey naninsk cel oluwikonok kehs naninsk cel oluwikonok
58 naninsk cel oqomolcin naninsk cel oqomolcin kehsewey naninsk cel oqomolcin kehs naninsk cel oqomolcin
59 naninsk cel esqonatek naninsk cel esqonatek kehsewey naninsk cel esqonatek kehs naninsk cel esqonatek
60 kamahcin kehsinsk kamahcin kehsinsk kehsewey kamahcin kehsinsk kehs kamahcin kehsinsk
61 kamahcin kehsinsk cel pesq, kamahcin kehsinsk cel neqt kamahcin kehsinsk cel pesq kehsewey, kamahcin kehsinsk cel neqt kehsewey kamahcin kehsinsk cel neqt kamahcin kehsinsk cel pesq, kamahcin kehsinsk cel neqt
62 kamahcin kehsinsk cel nis, kamahcin kehsinsk cel tapu kamahcin kehsinsk cel nis kehsewey, kamahcin kehsinsk cel tapu kehsewey kamahcin kehsinsk cel nisokehs kamahcin kehsinsk cel nis, kamahcin kehsinsk cel tapu
63 kamahcin kehsinsk cel nihi, kamahcin kehsinsk cel 'sis kamahcin kehsinsk cel nihi kehsewey, kamahcin kehsinsk cel 'sis kehsewey kamahcin kehsinsk cel nihikehs kamahcin kehsinsk cel nihi, kamahcin kehsinsk cel 'sis
64 kamahcin kehsinsk cel new kamahcin kehsinsk cel new kehsewey kamahcin kehsinsk cel newokehs kamahcin kehsinsk cel new
65 kamahcin kehsinsk cel nan kamahcin kehsinsk cel nan kehsewey kamahcin kehsinsk cel nanokehs kamahcin kehsinsk cel nan
66 kamahcin kehsinsk cel kamahcin kamahcin kehsinsk cel kamahcin kehsewey kamahcin kehsinsk cel kamahcin kehs kamahcin kehsinsk cel kamahcin
67 kamahcin kehsinsk cel oluwikonok kamahcin kehsinsk cel oluwikonok kehsewey kamahcin kehsinsk cel oluwikonok kehs kamahcin kehsinsk cel oluwikonok
68 kamahcin kehsinsk cel oqomolcin kamahcin kehsinsk cel oqomolcin kehsewey kamahcin kehsinsk cel oqomolcin kehs kamahcin kehsinsk cel oqomolcin
69 kamahcin kehsinsk cel esqonatek kamahcin kehsinsk cel esqonatek kehsewey kamahcin kehsinsk cel esqonatek kehs kamahcin kehsinsk cel esqonatek
70 oluwikonok kehsinsk oluwikonok kehsinsk kehsewey oluwikonok kehsinsk kehs oluwikonok kehsinsk
71 oluwikonok kehsinsk cel pesq, oluwikonok kehsinsk cel neqt oluwikonok kehsinsk cel pesq kehsewey, oluwikonok kehsinsk cel neqt kehsewey oluwikonok kehsinsk cel neqt oluwikonok kehsinsk cel pesq, oluwikonok kehsinsk cel neqt
72 oluwikonok kehsinsk cel nis, oluwikonok kehsinsk cel tapu oluwikonok kehsinsk cel nis kehsewey, oluwikonok kehsinsk cel tapu kehsewey oluwikonok kehsinsk cel nisokehs oluwikonok kehsinsk cel nis, oluwikonok kehsinsk cel tapu
73 oluwikonok kehsinsk cel nihi, oluwikonok kehsinsk cel 'sis oluwikonok kehsinsk cel nihi kehsewey, oluwikonok kehsinsk cel 'sis kehsewey oluwikonok kehsinsk cel nihikehs oluwikonok kehsinsk cel nihi, oluwikonok kehsinsk cel 'sis
74 oluwikonok kehsinsk cel new oluwikonok kehsinsk cel new kehsewey oluwikonok kehsinsk cel newokehs oluwikonok kehsinsk cel new
75 oluwikonok kehsinsk cel nan oluwikonok kehsinsk cel nan kehsewey oluwikonok kehsinsk cel nanokehs oluwikonok kehsinsk cel nan
76 oluwikonok kehsinsk cel kamahcin oluwikonok kehsinsk cel kamahcin kehsewey oluwikonok kehsinsk cel kamahcin kehs oluwikonok kehsinsk cel kamahcin
77 oluwikonok kehsinsk cel oluwikonok oluwikonok kehsinsk cel oluwikonok kehsewey oluwikonok kehsinsk cel oluwikonok kehs oluwikonok kehsinsk cel oluwikonok
78 oluwikonok kehsinsk cel oqomolcin oluwikonok kehsinsk cel oqomolcin kehsewey oluwikonok kehsinsk cel oqomolcin kehs oluwikonok kehsinsk cel oqomolcin
79 oluwikonok kehsinsk cel esqonatek oluwikonok kehsinsk cel esqonatek kehsewey oluwikonok kehsinsk cel esqonatek kehs oluwikonok kehsinsk cel esqonatek
80 oqomolcin kehsinsk oqomolcin kehsinsk kehsewey oqomolcin kehsinsk kehs oqomolcin kehsinsk
81 oqomolcin kehsinsk cel pesq, oqomolcin kehsinsk cel neqt oqomolcin kehsinsk cel pesq kehsewey, oqomolcin kehsinsk cel neqt kehsewey oqomolcin kehsinsk cel neqt oqomolcin kehsinsk cel pesq, oqomolcin kehsinsk cel neqt
82 oqomolcin kehsinsk cel nis, oqomolcin kehsinsk cel tapu oqomolcin kehsinsk cel nis kehsewey, oqomolcin kehsinsk cel tapu kehsewey oqomolcin kehsinsk cel nisokehs oqomolcin kehsinsk cel nis, oqomolcin kehsinsk cel tapu
83 oqomolcin kehsinsk cel nihi, oqomolcin kehsinsk cel 'sis oqomolcin kehsinsk cel nihi kehsewey, oqomolcin kehsinsk cel 'sis kehsewey oqomolcin kehsinsk cel nihikehs oqomolcin kehsinsk cel nihi, oqomolcin kehsinsk cel 'sis
84 oqomolcin kehsinsk cel new oqomolcin kehsinsk cel new kehsewey oqomolcin kehsinsk cel newokehs oqomolcin kehsinsk cel new
85 oqomolcin kehsinsk cel nan oqomolcin kehsinsk cel nan kehsewey oqomolcin kehsinsk cel nanokehs oqomolcin kehsinsk cel nan
86 oqomolcin kehsinsk cel kamahcin oqomolcin kehsinsk cel kamahcin kehsewey oqomolcin kehsinsk cel kamahcin kehs oqomolcin kehsinsk cel kamahcin
87 oqomolcin kehsinsk cel oluwikonok oqomolcin kehsinsk cel oluwikonok kehsewey oqomolcin kehsinsk cel oluwikonok kehs oqomolcin kehsinsk cel oluwikonok
88 oqomolcin kehsinsk cel oqomolcin oqomolcin kehsinsk cel oqomolcin kehsewey oqomolcin kehsinsk cel oqomolcin kehs oqomolcin kehsinsk cel oqomolcin
89 oqomolcin kehsinsk cel esqonatek oqomolcin kehsinsk cel esqonatek kehsewey oqomolcin kehsinsk cel esqonatek kehs oqomolcin kehsinsk cel esqonatek
90 esqonatek kehsinsk esqonatek kehsinsk kehsewey esqonatek kehsinsk kehs esqonatek kehsinsk
91 esqonatek kehsinsk cel pesq, esqonatek kehsinsk cel neqt esqonatek kehsinsk cel pesq kehsewey, esqonatek kehsinsk cel neqt kehsewey esqonatek kehsinsk cel neqt esqonatek kehsinsk cel pesq, esqonatek kehsinsk cel neqt
92 esqonatek kehsinsk cel nis, esqonatek kehsinsk cel tapu esqonatek kehsinsk cel nis kehsewey, esqonatek kehsinsk cel tapu kehsewey esqonatek kehsinsk cel nisokehs esqonatek kehsinsk cel nis, esqonatek kehsinsk cel tapu
93 esqonatek kehsinsk cel nihi, esqonatek kehsinsk cel 'sis esqonatek kehsinsk cel nihi kehsewey, esqonatek kehsinsk cel 'sis kehsewey esqonatek kehsinsk cel nihikehs esqonatek kehsinsk cel nihi, esqonatek kehsinsk cel 'sis
94 esqonatek kehsinsk cel new esqonatek kehsinsk cel new kehsewey esqonatek kehsinsk cel newokehs esqonatek kehsinsk cel new
95 esqonatek kehsinsk cel nan esqonatek kehsinsk cel nan kehsewey esqonatek kehsinsk cel nanokehs esqonatek kehsinsk cel nan
96 esqonatek kehsinsk cel kamahcin esqonatek kehsinsk cel kamahcin kehsewey esqonatek kehsinsk cel kamahcin kehs esqonatek kehsinsk cel kamahcin
97 esqonatek kehsinsk cel oluwikonok esqonatek kehsinsk cel oluwikonok kehsewey esqonatek kehsinsk cel oluwikonok kehs esqonatek kehsinsk cel oluwikonok
98 esqonatek kehsinsk cel oqomolcin esqonatek kehsinsk cel oqomolcin kehsewey esqonatek kehsinsk cel oqomolcin kehs esqonatek kehsinsk cel oqomolcin
99 esqonatek kehsinsk cel esqonatek esqonatek kehsinsk cel esqonatek kehsewey esqonatek kehsinsk cel esqonatek kehs esqonatek kehsinsk cel esqonatek
100 'qotatq 'qotatq kehsewey 'qotatq kehs 'qotatq
200 nisatq nisatq kehsewey nisatq kehs nisatq
300 'satq 'satq kehsewey 'satq kehs 'satq
400 newatq newatq kehsewey newatq kehs newatq
500 nanatq nanatq kehsewey nanatq kehs nanatq
600 kamahcin kehsatq kamahcin kehsatq kehsewey kamahcin kehsatq kehs kamahcin kehsatq
700 oluwikonok kehsatq oluwikonok kehsatq kehsewey oluwikonok kehsatq kehs oluwikonok kehsatq
800 oqomolcin kehsatq oqomolcin kehsatq kehsewey oqomolcin kehsatq kehs oqomolcin kehsatq
900 esqonatek kehsatq esqonatek kehsatq kehsewey esqonatek kehsatq kehs esqonatek kehsatq
1,000 'qotamqahk 'qotamqahk kehsewey 'qotamqahk kehs 'qotamqahk
2,000 nisamqahk nisamqahk kehsewey nisamqahk kehs nisamqahk
3,000 'samqahk 'samqahk kehsewey 'samqahk kehs 'samqahk
4,000 newamqahk newamqahk kehsewey newamqahk kehs newamqahk
5,000 nanamqahk nanamqahk kehsewey nanamqahk kehs nanamqahk
6,000 kamahcin kehsamqahk kamahcin kehsamqahk kehsewey kamahcin kehsamqahk kehs kamahcin kehsamqahk
7,000 oluwikonok kehsamqahk oluwikonok kehsamqahk kehsewey oluwikonok kehsamqahk kehs oluwikonok kehsamqahk
8,000 oqomolcin kehsamqahk oqomolcin kehsamqahk kehsewey oqomolcin kehsamqahk kehs oqomolcin kehsamqahk
9,000 esqonatek kehsamqahk esqonatek kehsamqahk kehsewey esqonatek kehsamqahk kehs esqonatek kehsamqahk
1,000,000 (106) 'qotalokamqahk 'qotalokamqahk kehsewey 'qotalokamqahk kehs 'qotalokamqahk
2,000,000 (2 × 106) nisalokamqahk nisalokamqahk kehsewey nisalokamqahk kehs nisalokamqahk
3,000,000 (3 × 106) 'salokamqahk 'salokamqahk kehsewey 'salokamqahk kehs 'salokamqahk
4,000,000 (4 × 106) newalokamqahk newalokamqahk kehsewey newalokamqahk kehs newalokamqahk
5,000,000 (5 × 106) nanalokamqahk nanalokamqahk kehsewey nanalokamqahk kehs nanalokamqahk
6,000,000 (6 × 106) kamahcin kehsalokamqahk kamahcin kehsalokamqahk kehsewey kamahcin kehsalokamqahk kehs kamahcin kehsalokamqahk
7,000,000 (7 × 106) oluwikonok kehsalokamqahk oluwikonok kehsalokamqahk kehsewey oluwikonok kehsalokamqahk kehs oluwikonok kehsalokamqahk
8,000,000 (8 × 106) oqomolcin kehsalokamqahk oqomolcin kehsalokamqahk kehsewey oqomolcin kehsalokamqahk kehs oqomolcin kehsalokamqahk
9,000,000 (9 × 106) esqonatek kehsalokamqahk esqonatek kehsalokamqahk kehsewey esqonatek kehsalokamqahk kehs esqonatek kehsalokamqahk

local export = {numbers = {}}

local numbers = export.numbers

export.additional_number_types = {
	{key = "adnominal"},
}

numbers[1] = {
	cardinal = {"pesq", "neqt"},
	ordinal = "amsqahsewey",
	adverbial = "neqt",
	adnominal = {"pesq", "pesqon"},
	initial_root = {"[['qoci|'qoc-]]", "[['qoci|'qot-]]"}
}

numbers[2] = {
	cardinal = {"nis", "tapu"},
	ordinal = "nisewey",
	adverbial = "nisokehs",
	adnominal = {"nisuwok", "nisonul"},
	initial_root = "nis-"
}

numbers[3] = {
	cardinal = {"nihi", "'sis"},
	ordinal = "nuhuwewey",
	adverbial = "nihikehs",
	adnominal = {"nuhuwok", "nohonul"},
	initial_root = "'s-"
}

numbers[4] = {
	cardinal = "new",
	ordinal = "newewey",
	adverbial = "newokehs",
	adnominal = {"newwok", "newonul"},
	initial_root = "new-"
}

numbers[5] = {
	cardinal = "nan",
	ordinal = "nanewey",
	adverbial = "nanokehs",
	adnominal = {"nanuwok", "nanonul"},
	initial_root = "nan-"
}

generativeNumList = {
	[6] = "kamahcin",
	[7] = "oluwikonok",
	[8] = "oqomolcin",
	[9] = "esqonatek",
	[10] = "'qotinsk",
	[11] = "'qotanku",
	[12] = "nisanku",
	[13] = "'sanku",
	[14] = "newanku",
	[15] = "nananku",
	[100] = "'qotatq",
	[1000] = "'qotamqahk",
	[1000000] = "'qotalokamqahk",
}

-- Automate the generation of numbers 16-19, which are simply [name of number in ones place] + "kehsanku"
for n = 16, 19 do
	generativeNumList[n] = generativeNumList[n - 10] .. " kehsanku"
end

-- Automate the generation of multiples of 10 from 20-50, using this constructor: "[initial root of number in tens place]insk"
for n = 20, 50, 10 do
	local rootPrefix = numbers[n / 10].initial_root:sub(1, -2)
	generativeNumList[n] = rootPrefix .. "insk"
end

-- Automate the generation of multiples of 10 from 60-90, which follow this rule: [mame of number in tens place] + "kehsinsk"
for n = 60, 90, 10 do
	generativeNumList[n] = generativeNumList[n / 10] .. " kehsinsk"
end

-- Automate the generation of all other numbers from 21-99, which use "cel" as a connector
for n = 21, 99 do
	-- If not a multiple of 10, i.e. not 30, 40, etc.
	local ones = n % 10
	if ones ~= 0 then
		
		local base = generativeNumList[math.floor(n / 10) * 10] .. " cel "
		
		-- 21, 22 and 23, and 31, 32, 33, etc. have alternative forms.
		if ones <= 3 then
			
			local form1 = base .. numbers[n % 10].cardinal[1]
			local form2 = base .. numbers[n % 10].cardinal[2]
			generativeNumList[n] = {form1, form2, base}
		
		-- Pull data from the numbers table
		elseif ones <= 5 then
			
			local form = base .. numbers[n % 10].cardinal
			generativeNumList[n] = {form, base}
		
		-- Pull data from the generativeNumList table
		else
			
			local form = base .. generativeNumList[n % 10]
			generativeNumList[n] = {form, base}
			
		end
		
	end
	
end

-- Automate the generation of multiples of 100 from 200-500, using this constructor: "[initial root of number in hundreds place]atq"
for n = 200, 500, 100 do
	local rootPrefix = numbers[n / 100].initial_root:sub(1, -2)
	generativeNumList[n] = rootPrefix .. "atq"
end

-- Automate the generation of multiples of 100 from 600-900, which follow this rule: [mame of number in hundreds place] + "kehsatq"
for n = 600, 900, 100 do
	generativeNumList[n] = generativeNumList[n / 100] .. " kehsatq"
end

-- Automate the generation of multiples of 1000 from 2000-5000, using this constructor: "[initial root of number in thousands place]amqahk"
for n = 2000, 5000, 1000 do
	local rootPrefix = numbers[n / 1000].initial_root:sub(1, -2)
	generativeNumList[n] = rootPrefix .. "amqahk"
end

-- Automate the generation of multiples of 1000 from 6000-9000, which follow this rule: [mame of number in thousands place] + "kehsamqahk"
for n = 6000, 9000, 1000 do
	generativeNumList[n] = generativeNumList[n / 1000] .. " kehsamqahk"
end

-- Automate the generation of multiples of a million from 2000000-5000000, using this constructor: "[initial root of number in thousands place]alokamqahk"
for n = 2000000, 5000000, 1000000 do
	local rootPrefix = numbers[n / 1000000].initial_root:sub(1, -2)
	generativeNumList[n] = rootPrefix .. "alokamqahk"
end

-- Automate the generation of multiples of a million from 6000000-9000000, which follow this rule: [mame of number in thousands place] + "kehsalokamqahk"
for n = 6000000, 9000000, 1000000 do
	generativeNumList[n] = generativeNumList[n / 1000000] .. " kehsalokamqahk"
end

for n, word in pairs(generativeNumList) do
	
	-- 21, 22 and 23, and 31, 32, 33, etc. have alternative forms.
	if n > 20 and n < 100 and n % 10 ~= 0 and n % 10 <= 3 then
		
		numbers[n] = {
			cardinal = {"[[" .. word[1] .. "]]", "[[" .. word[2] .. "]]"},
			ordinal = {"[[" .. word[1] .. "]] [[kehsewey]]", "[[" .. word[2] .. "]] [[kehsewey]]"},
			adverbial = "[[" .. word[3] .. numbers[n % 10].adverbial .. "]]",
			adnominal = {"[[" .. word[1] .. "]]", "[[" .. word[2] .. "]]"}
		}
	
	-- Pull data from the numbers table
	elseif n > 20 and n < 100 and n % 10 ~= 0 and n % 10 <= 5 then
		
		numbers[n] = {
			cardinal = "[[" .. word[1] .. "]]",
			ordinal = "[[" .. word[1] .. "]] [[kehsewey]]",
			adverbial = "[[" .. word[2] .. numbers[n % 10].adverbial .. "]]",
			adnominal = "[[" .. word[1] .. "]]"
		}
	
	-- Pull data from the generativeNumList table
	elseif n > 20 and n < 100 and n % 10 ~= 0 then
		
		numbers[n] = {
			cardinal = "[[" .. word[1] .. "]]",
			ordinal = "[[" .. word[1] .. "]] [[kehsewey]]",
			adverbial = "[[" .. word[2] .. generativeNumList[n % 10] .. "]] [[kehs]]",
			adnominal = "[[" .. word[1] .. "]]",
		}
	
	-- All other numbers
	else
		
		numbers[n] = {
			cardinal = "[[" .. word .. "]]",
			ordinal = "[[" .. word .. "]] [[kehsewey]]",
			adverbial = "[[" .. word .. "]] [[kehs]]",
			adnominal = {"[[" .. word .. "]] [[kehsuwok]]", "[[" .. word .. "]] [[kehsonul]]"}
		}
		
		-- Overrides adnominal form for numbers greater than 9. The cardinal and adnominal forms are the same for these numbers.
		if n > 9 then
			numbers[n].adnominal = "[[" .. word .. "]]"
		end
		
	end
	
end

return export