Module:User:Benwing2/form of/lang-data/en/templates

--[=[ 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