Module:User:Benwing2/gender and number utilities

Hello, you have come here looking for the meaning of the word Module:User:Benwing2/gender and number utilities. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:User:Benwing2/gender and number utilities, but we will also tell you about its etymology, its characteristics and you will know how to say Module:User:Benwing2/gender and number utilities in singular and plural. Everything you need to know about the word Module:User:Benwing2/gender and number utilities you have here. The definition of the word Module:User:Benwing2/gender and number utilities will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:User:Benwing2/gender and number utilities, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.


local export = {}

local parameter_utilities_module = "Module:parameter utilities"
local parse_interface_module = "Module:parse interface"


function export.parse_gender_and_number_spec(data)
	local spec = data.spec
	if not spec:find("") then
		return {{spec = spec}}
	end
    local param_mods = require(parameter_utilities_module).construct_param_mods {
        {group = {"q", "l", "ref"}},
    }

	local function generate_obj(term, parse_err)
		return {
			spec = term
		}
	end

	return require(parse_interface_module).parse_inline_modifiers(spec, {
		paramname = data.paramname,
		param_mods = param_mods,
		generate_obj = generate_obj,
		parse_err = data.parse_err,
		escape_fun = false,
		unescape_fun = false,
		splitchar = data.allow_multiple and (data.allow_space_after_comma and ",%s*" or ",") or nil,
	})
end

return export