Module:qhv-noun/data: Difference between revisions

Jump to navigation Jump to search
Undo revision 221764 by Sware (talk)
No edit summary
(Undo revision 221764 by Sware (talk))
Tag: Undo
Line 10: Line 10:
}
}
setmetatable(alldata["1-l"], {__call = function(self, args, data)
setmetatable(alldata["1-l"], {__call = function(self, args, data)
local stem = sub(args[1], -1) == "m" and sub(args[1], 1, -2) .. "b" or args[1]
local stem = args[1]
local i = sub(stem, -1) == "i"
local i = sub(stem, -1) == "i"
local stemi = sub(stem, 1, -2)
local stemi = sub(stem, 1, -2)
Line 63: Line 63:
}
}
setmetatable(alldata["1-a"], {__call = function(self, args, data)
setmetatable(alldata["1-a"], {__call = function(self, args, data)
local stem = sub(args[1], -1) == "m" and sub(args[1], 1, -2) .. "b" or args[1]
local stem = args[1]
data.decl_type = "aquatic first-declension"
data.decl_type = "aquatic first-declension"
table.insert(data.categories, "High Valyrian first-declension " .. (data.proper and "proper " or "") .. "nouns")
table.insert(data.categories, "High Valyrian first-declension " .. (data.proper and "proper " or "") .. "nouns")
Line 114: Line 114:
}
}
setmetatable(alldata["2-l"], {__call = function(self, args, data)
setmetatable(alldata["2-l"], {__call = function(self, args, data)
local stem = sub(args[1], -1) == "m" and sub(args[1], 1, -2) .. "b" or args[1]
local stem = args[1]
data.decl_type = "lunar second-declension"
data.decl_type = "lunar second-declension"
table.insert(data.categories, "High Valyrian second-declension " .. (data.proper and "proper " or "") .. "nouns")
table.insert(data.categories, "High Valyrian second-declension " .. (data.proper and "proper " or "") .. "nouns")
Line 165: Line 165:
}
}
setmetatable(alldata["2-s"], {__call = function(self, args, data)
setmetatable(alldata["2-s"], {__call = function(self, args, data)
local stem = sub(args[1], -1) == "m" and sub(args[1], 1, -2) .. "b" or args[1]
local stem = args[1]
data.decl_type = "solar second-declension"
data.decl_type = "solar second-declension"
table.insert(data.categories, "High Valyrian second-declension " .. (data.proper and "proper " or "") .. "nouns")
table.insert(data.categories, "High Valyrian second-declension " .. (data.proper and "proper " or "") .. "nouns")
Line 216: Line 216:
}
}
setmetatable(alldata["3-l"], {__call = function(self, args, data)
setmetatable(alldata["3-l"], {__call = function(self, args, data)
local stem = sub(args[1], -1) == "m" and sub(args[1], 1, -2) .. "b" or args[1]
local stem = args[1]
local i = sub(stem, -1) == "i"
local i = sub(stem, -1) == "i"
local stemi = sub(stem, 1, -2)
local stemi = sub(stem, 1, -2)
Line 269: Line 269:
}
}
setmetatable(alldata["3-s"], {__call = function(self, args, data)
setmetatable(alldata["3-s"], {__call = function(self, args, data)
local stem = sub(args[1], -1) == "m" and sub(args[1], 1, -2) .. "b" or args[1]
local stem = args[1]
data.decl_type = "solar third-declension"
data.decl_type = "solar third-declension"
table.insert(data.categories, "High Valyrian third-declension " .. (data.proper and "proper " or "") .. "nouns")
table.insert(data.categories, "High Valyrian third-declension " .. (data.proper and "proper " or "") .. "nouns")
Line 320: Line 320:
}
}
setmetatable(alldata["3-s-k"], {__call = function(self, args, data)
setmetatable(alldata["3-s-k"], {__call = function(self, args, data)
local stem = sub(args[1], -1) == "m" and sub(args[1], 1, -2) .. "b" or args[1]
local stem = args[1]
data.decl_type = "k-stem solar third-declension"
data.decl_type = "k-stem solar third-declension"
table.insert(data.categories, "High Valyrian third-declension " .. (data.proper and "proper " or "") .. "nouns")
table.insert(data.categories, "High Valyrian third-declension " .. (data.proper and "proper " or "") .. "nouns")
Line 424: Line 424:
}
}
setmetatable(alldata["3-s-h"], {__call = function(self, args, data)
setmetatable(alldata["3-s-h"], {__call = function(self, args, data)
local stem = sub(args[1], -1) == "m" and sub(args[1], 1, -2) .. "b" or args[1]
local stem = args[1]
data.decl_type = "h-stem solar third-declension"
data.decl_type = "h-stem solar third-declension"
table.insert(data.categories, "High Valyrian third-declension " .. (data.proper and "proper " or "") .. "nouns")
table.insert(data.categories, "High Valyrian third-declension " .. (data.proper and "proper " or "") .. "nouns")
Line 476: Line 476:
}
}
setmetatable(alldata["3-t"], {__call = function(self, args, data)
setmetatable(alldata["3-t"], {__call = function(self, args, data)
local stem = sub(args[1], -1) == "m" and sub(args[1], 1, -2) .. "b" or args[1]
local stem = args[1]
local i = sub(stem, -1) == "i"
local i = sub(stem, -1) == "i"
local stemi = sub(stem, 1, -2)
local stemi = sub(stem, 1, -2)
Line 529: Line 529:
}
}
setmetatable(alldata["3-a"], {__call = function(self, args, data)
setmetatable(alldata["3-a"], {__call = function(self, args, data)
local stem = sub(args[1], -1) == "m" and sub(args[1], 1, -2) .. "b" or args[1]
local stem = args[1]
data.decl_type = "aquatic third-declension"
data.decl_type = "aquatic third-declension"
table.insert(data.categories, "High Valyrian third-declension " .. (data.proper and "proper " or "") .. "nouns")
table.insert(data.categories, "High Valyrian third-declension " .. (data.proper and "proper " or "") .. "nouns")
Line 580: Line 580:
}
}
setmetatable(alldata["4-l"], {__call = function(self, args, data)
setmetatable(alldata["4-l"], {__call = function(self, args, data)
local stem = sub(args[1], -1) == "m" and sub(args[1], 1, -2) .. "b" or args[1]
local stem = args[1]
data.decl_type = "lunar fourth-declension"
data.decl_type = "lunar fourth-declension"
table.insert(data.categories, "High Valyrian fourth-declension " .. (data.proper and "proper " or "") .. "nouns")
table.insert(data.categories, "High Valyrian fourth-declension " .. (data.proper and "proper " or "") .. "nouns")
Line 631: Line 631:
}
}
setmetatable(alldata["4-s"], {__call = function(self, args, data)
setmetatable(alldata["4-s"], {__call = function(self, args, data)
local stem = sub(args[1], -1) == "m" and sub(args[1], 1, -2) .. "b" or args[1]
local stem = args[1]
data.decl_type = "solar fourth-declension"
data.decl_type = "solar fourth-declension"
table.insert(data.categories, "High Valyrian fourth-declension " .. (data.proper and "proper " or "") .. "nouns")
table.insert(data.categories, "High Valyrian fourth-declension " .. (data.proper and "proper " or "") .. "nouns")
Line 682: Line 682:
}
}
setmetatable(alldata["4-t"], {__call = function(self, args, data)
setmetatable(alldata["4-t"], {__call = function(self, args, data)
local stem = sub(args[1], -1) == "m" and sub(args[1], 1, -2) .. "b" or args[1]
local stem = args[1]
data.decl_type = "terrestrial fourth-declension"
data.decl_type = "terrestrial fourth-declension"
table.insert(data.categories, "High Valyrian fourth-declension " .. (data.proper and "proper " or "") .. "nouns")
table.insert(data.categories, "High Valyrian fourth-declension " .. (data.proper and "proper " or "") .. "nouns")
Line 733: Line 733:
}
}
setmetatable(alldata["5-l"], {__call = function(self, args, data)
setmetatable(alldata["5-l"], {__call = function(self, args, data)
local stem = sub(args[1], -1) == "m" and sub(args[1], 1, -2) .. "b" or args[1]
local stem = args[1]
data.decl_type = "lunar fifth-declension"
data.decl_type = "lunar fifth-declension"
table.insert(data.categories, "High Valyrian fifth-declension " .. (data.proper and "proper " or "") .. "nouns")
table.insert(data.categories, "High Valyrian fifth-declension " .. (data.proper and "proper " or "") .. "nouns")
Line 784: Line 784:
}
}
setmetatable(alldata["5-s"], {__call = function(self, args, data)
setmetatable(alldata["5-s"], {__call = function(self, args, data)
local stem = sub(args[1], -1) == "m" and sub(args[1], 1, -2) .. "b" or args[1]
local stem = args[1]
data.decl_type = "solar fifth-declension"
data.decl_type = "solar fifth-declension"
table.insert(data.categories, "High Valyrian fifth-declension " .. (data.proper and "proper " or "") .. "nouns")
table.insert(data.categories, "High Valyrian fifth-declension " .. (data.proper and "proper " or "") .. "nouns")
Line 835: Line 835:
}
}
setmetatable(alldata["5-a"], {__call = function(self, args, data)
setmetatable(alldata["5-a"], {__call = function(self, args, data)
local stem = sub(args[1], -1) == "m" and sub(args[1], 1, -2) .. "b" or args[1]
local stem = args[1]
local z = sub(stem, -2) == "rz"
local z = sub(stem, -2) == "rz"
local stemz = sub(stem, 1, -3)
local stemz = sub(stem, 1, -3)
Line 944: Line 944:
}
}
setmetatable(alldata["6"], {__call = function(self, args, data)
setmetatable(alldata["6"], {__call = function(self, args, data)
local stem = sub(args[1], -1) == "m" and sub(args[1], 1, -2) .. "b" or args[1]  
local stem = args[1]  
data.decl_type = "sixth-declension"
data.decl_type = "sixth-declension"
table.insert(data.categories, "High Valyrian sixth-declension " .. (data.proper and "proper " or "") .. "nouns")
table.insert(data.categories, "High Valyrian sixth-declension " .. (data.proper and "proper " or "") .. "nouns")
Line 1,079: Line 1,079:
}
}
setmetatable(alldata["6-u"], {__call = function(self, args, data)
setmetatable(alldata["6-u"], {__call = function(self, args, data)
local stem = sub(args[1], -1) == "m" and sub(args[1], 1, -2) .. "b" or args[1]  
local stem = args[1]  
data.decl_type = "sixth-declension"
data.decl_type = "sixth-declension"
table.insert(data.categories, "High Valyrian sixth-declension " .. (data.proper and "proper " or "") .. "nouns")
table.insert(data.categories, "High Valyrian sixth-declension " .. (data.proper and "proper " or "") .. "nouns")

Navigation menu