Module:User:Benwing2/form of/lang-data/en/templates
- This module sandbox lacks a documentation subpage. You may create it.
- Useful links: root page • root page’s subpages • links • transclusions • testcases • user page • user talk page • userspace
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.
--[=[
This module contains lang-specific tags for English.
]=]
local export = {}
local form_of_lang_data_en_functions_module = "Module:User:Benwing2/form of/lang-data/en/functions"
local lang = require("Module:languages").getByCode("en")
function export.test_irregular_plural_categories(frame)
local params = {
[1] = {list = true, required = true},
["pagename"] = {required = true},
}
local args = require("Module:parameters").process(frame.args, params)
local fn = require(form_of_lang_data_en_functions_module).cat_functions["en-irregular-plural-categories"]
for i, lemma in ipairs(args[1]) do
args[1][i] = {term = lemma}
end
local cats = fn {
lang = lang,
POS = "noun",
pagename = args.pagename,
lemmas = args[1],
}
if not cats then
return "nil"
elseif type(cats) == "string" then
return cats
else
return table.concat(cats, ",")
end
end
return export