Module:User:Benwing2/category tree/topic cat/data/Numbers

From Wiktionary, the free dictionary
Jump to navigation Jump to search

This is a private module sandbox of Benwing2, for their own experimentation. Items in this module may be added and removed at Benwing2's discretion; do not rely on this module's stability.


local labels = {}

labels["numbers"] = {
	type = "topic",
	description = "default",
	parents = {"all topics"},
}

for _, number in ipairs {
	"zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", 
	"eleven", "twelve", "thirteen", "fourteen", "fifteen", "sixteen", "seventeen", "eighteen", "nineteen",
	"twenty", "thirty", "forty", "fifty", "sixty", "seventy", "eighty", "ninety", "one hundred", "one thousand",
} do
	local bare_number = number:gsub("^one ", "")
	labels[bare_number] = {
		type = "topic",
		description = ("=the number [[%s]] ([[etymologically]] or [[semantically]])"):format(number),
		parents = {"numbers"},
	}
end

labels["collective numbers"] = {
	type = "set",
	description = "default",
	parents = {"numbers"},
}

labels["distributive numbers"] = {
	type = "set",
	description = "default",
	parents = {"numbers"},
}

labels["multiplicative numbers"] = {
	type = "set",
	description = "default",
	parents = {"numbers"},
}

labels["historical numbers"] = {
	type = "set",
	description = "default",
	parents = {"numbers"},
}

return labels