This module contains data on various types of numbers in Egyptian Arabic.
local export = {}
local numbers = {}
export.numbers = numbers
numbers = {
cardinal = "صفر"
}
numbers = {
cardinal = "واحد",
ordinal = "أول"
}
numbers = {
cardinal = "اتنين",
ordinal = "تاني",
fractional = "نص"
}
numbers = {
cardinal = "تلاتة",
ordinal = "تالت",
fractional = "تلت"
}
numbers = {
cardinal = "أربعة",
ordinal = "رابع",
fractional = "ربع"
}
numbers = {
cardinal = "خمسة",
ordinal = "خامس",
fractional = "خمس"
}
numbers = {
cardinal = "ستة",
ordinal = "سادس",
fractional = "سدس"
}
numbers = {
cardinal = "سبعة",
ordinal = "سابع",
fractional = "سبع"
}
numbers = {
cardinal = "تمانية",
ordinal = "تامن",
fractional = "تمن"
}
numbers = {
cardinal = "تسعة",
ordinal = "تاسع",
fractional = "تسع"
}
numbers = {
cardinal = "عشرة",
ordinal = "عاشر",
fractional = "عشر"
}
numbers = {
cardinal = "حداشر",
}
numbers = {
cardinal = "اتناشر",
}
numbers = {
cardinal = "تلاتاشر",
}
numbers = {
cardinal = "أربعتاشر",
}
numbers = {
cardinal = "خمستاشر",
}
numbers = {
cardinal = "ستاشر",
}
numbers = {
cardinal = "سبعتاشر",
}
numbers = {
cardinal = "تمنتاشر",
}
numbers = {
cardinal = "تسعتاشر",
}
local function unpack_ipairs(t)
local i = 0
return function()
i = i + 1
if t then
return i, unpack(t)
end
end
end
for i, tens_cardinal in unpack_ipairs {
{ "عشرين"},
{ "تلاتين" },
{ "أربعين" },
{ "خمسين" },
{ "ستين" },
{ "سبعين" },
{ "تمنين" },
{ "تسعين" },
} do
local tens = (i + 1) * 10
numbers = {
cardinal = tens_cardinal,
}
local suffix = (" و" .. tens_cardinal)
local one_word_cardinal = suffix:sub(-1) ~= " "
for ones = 1, 9 do
local ones_cardinal = numbers.cardinal
local cardinal = ones_cardinal .. suffix
local number = {}
numbers = number
number.cardinal = cardinal
end
end
numbers = {
cardinal = "مية"
}
numbers = {
cardinal = "ميتين"
}
numbers = {
cardinal = "ألف"
}
numbers = {
cardinal = "ألفين"
}
numbers = {
cardinal = "مليون"
}
numbers = {
cardinal = "مليار"
}
return export