m1Opts = [
"Audits of suppliers (self- reporting)",
"Audits of suppliers (independent)",
"On-site visits (self- reporting)",
"On-site visits (independent)"
]
m2Opts = [
"Worker remediation",
"Corrective action plan",
"Senior management",
"Cancel contracts",
"Remediation is mentioned but no details of the process or measures"
]
containsAny = (metric, options) -> [metric].flat().filter( (v) -> options.includes v).length
if containsAny(m1, m1Opts) || containsAny(m2, m2Opts)
"Yes"
else if m1.includes("Unknown") && m2.includes("Unknown")
"Unknown"
else
"No"