local export = {}
local lang = require("Module:languages").getByCode("bnt-pro")
function export.noun(frame)
local params = {
= {},
= {},
= {},
}
local args = require("Module:parameters").process(frame:getParent().args, params)
local data = {lang = lang, pos_category = "nouns", categories = {}, heads = {args}, genders = {args or "?"}, inflections = {}}
local prefixes = {
= {"mʊ̀"},
= {""},
= {"bà"},
= {"mʊ̀"},
= {"mɪ̀"},
= {"ì"},
= {"mà"},
= {"kɪ̀"},
= {"bì"},
= {"n", "m"},
= {"n", "m"},
= {"dʊ̀"},
= {"kà"},
= {"tʊ̀"},
= {"bʊ̀"},
= {"kʊ̀"},
= {"pà"},
= {"kʊ̀"},
= {"mʊ̀"},
= {"pì"}
}
local stem = mw.title.getCurrentTitle().subpageText
if args then
for key, prefix in ipairs(prefixes]) do
if mw.ustring.find(stem, "^" .. prefix) then
stem = stem:gsub("^" .. prefix, "")
break
end
end
table.insert(data.categories, lang:getCanonicalName() .. " class " .. args .. " nouns")
end
data.sort_key = lang:makeSortKey(stem)
if args then
local plural = prefixes] .. stem
if args == "9" or args == "10" then
if mw.ustring.find(stem, "^") then
plural = "m" .. stem
end
end
table.insert(data.inflections, {label = "plural", {term = "*" .. plural, genders = {"c" .. args}}})
end
return require("Module:headword").full_headword(data)
end
return export