local export = {numbers = {}}
local numbers = export.numbers
numbers[1] = {
cardinal = "ān",
ordinal = "forma",
adverbial = "ǣne",
-- multiplier = "",
-- distributive = "",
-- collective = "",
-- fractional = "",
}
numbers[2] = {
cardinal = "twēġen",
ordinal = "ōþer",
adverbial = "tweowa",
}
numbers[3] = {
cardinal = "þrī",
ordinal = "þridda",
adverbial = "þreowa",
}
numbers[4] = {
cardinal = "fēower",
ordinal = "fēorþa",
}
numbers[5] = {
cardinal = "fīf",
ordinal = "fīfta",
}
numbers[6] = {
cardinal = "siex",
ordinal = "siexta",
}
numbers[7] = {
cardinal = "seofon",
ordinal = "seofoþa",
}
numbers[8] = {
cardinal = "eahta",
ordinal = "eahtoþa",
}
numbers[9] = {
cardinal = "nigon",
ordinal = "nigoþa",
}
numbers[10] = {
cardinal = "tīen",
ordinal = "tēoþa",
}
numbers[11] = {
cardinal = "endleofan",
ordinal = "endlefta",
}
numbers[12] = {
cardinal = "twelf",
ordinal = "twelfta",
}
numbers[13] = {
cardinal = "þrēotīene",
ordinal = "þrēottēoþa",
}
numbers[14] = {
cardinal = "fēowertīene",
ordinal = "fēowertēoþa",
}
numbers[15] = {
cardinal = "fīftīene",
ordinal = "fīftēoþa",
}
numbers[16] = {
cardinal = "siextīene",
ordinal = "siextēoþa",
}
numbers[17] = {
cardinal = "seofontīene",
ordinal = "seofontēoþa",
}
numbers[18] = {
cardinal = "eahtatīene",
ordinal = "eahtatēoþa",
}
numbers[19] = {
cardinal = "nigontīene",
ordinal = "nigontēoþa",
}
numbers[20] = {
cardinal = "twēntiġ",
ordinal = "twēntigoþa",
}
numbers[30] = {
cardinal = "þrītiġ",
ordinal = "þrītigoþa",
}
numbers[40] = {
cardinal = "fēowertiġ",
ordinal = "fēowertigoþa",
}
numbers[50] = {
cardinal = "fīftiġ",
ordinal = "fīftigoþa",
}
numbers[60] = {
cardinal = "siextiġ",
ordinal = "siextigoþa",
}
numbers[70] = {
cardinal = "hundseofontiġ",
ordinal = "hundseofontigoþa"
}
numbers[80] = {
cardinal = "hundeahtatiġ",
ordinal = "hundeahtatigoþa",
}
numbers[90] = {
cardinal = "hundnigontiġ",
ordinal = "hundnigontigoþa",
}
local replacements = {
cardinal = {
[2] = "twā",
[3] = "þrēo",
},
multiplier = {
[2] = "twi"
}
}
for i = 1, 9 do
local multiplier = replacements.multiplier[i] or numbers[i].cardinal
numbers[i].multiplier = multiplier .. "feald"
numbers[i * 10].multiplier = numbers[i * 10].cardinal .. "feald"
numbers[i + 10].multiplier = numbers[i + 10].cardinal .. "feald"
for tens = 20, 90, 10 do
local ones_cardinal = replacements.cardinal[i] or numbers[i].cardinal
local tens_numerals = numbers[tens]
numbers[tens + i] = {
cardinal = ones_cardinal .. " and " .. tens_numerals.cardinal,
ordinal = ones_cardinal .. " and " .. tens_numerals.ordinal,
}
end
end
numbers[100] = {
cardinal = {"hundred", "hundtēontiġ"},
ordinal = "hundtēontigoþa",
multiplier = "hundfeald"
}
numbers[101] = {
cardinal = "ān and hundtēontiġ",
ordinal = "hundtēontigoþa and forma"
}
numbers[1000] = {
cardinal = "þūsend",
multiplier = "þūsendfeald"
}
return export