Module:Inclusive language

local p = {}

function p.main( frame ) local words = mw.title.makeTitle( '', 'Inclusive language/words' ) local decoded = mw.text.jsonDecode( words:getContent ) local output = {} table.insert(output, "{| class='wikitable'") table.insert(output, "|-") table.insert(output, "! Words to be avoided !! Suggested alternative words !! Context") table.insert(output, "|-") for i, v in ipairs(decoded) do table.insert(output, "| " .. table.concat(v.avoid, ", ") .. " || " .. table.concat(v.use, ", ") .. " || " .. v.context) table.insert(output, "|-") end table.insert(output, "|}") return table.concat(output, "\n") end

return p