Module:Guidance

local p = {} --p stands for package

function p.reasons(frame) rs = {} rs[1] = "graphic violence or gore"; rs[2] = "flashing images"; rs[3] = "jump scares"; rs[4] = "sexual content"; rv   = {}; rv[1] = "flashing" rv[2] = "graphic" rv[3] = "jumpscare" rv[4] = "sexual" for i = 4,1,-1 do if string.find(frame.args[1], rv[i]) then if ro == nil then ro = rs[i] elseif string.find(ro,", and") then ro = rs[i]..", "..ro			else ro = rs[i]..", and "..ro			end end end

return ro end

return p