local m_debug = require("Module:debug") local export = {} function export.test(frame) local m = require("Module:labels") local l = m.get_label(frame.args[1]) return m_debug.dump(frame) end function export.compound_hyphens(frame) local args = frame:getParent().args local term1 = args[1]; if term1 == "" then term1 = nil end local term2 = args[2]; if term2 == "" then term2 = nil end local term3 = args[3]; if term3 == "" then term3 = nil end local term4 = args[4]; if term4 == "" then term4 = nil end local term5 = args[5]; if term5 == "" then term5 = nil end local term6 = args[6]; if term6 == "" then term6 = nil end local term7 = args[7]; if term7 == "" then term7 = nil end local terms = {term1, term2, term3, term4, term5, term6, term7} for i, term in ipairs(terms) do if mw.ustring.find(term, "^[-־]") or mw.ustring.find(term, "[-־]$") then return "[[Category:Compound with hyphen]]" end end return "" end return export