score = (x) -> if x == "Yes" 10 else 0 engagements = [stakeholder_issue_disclosure, stakeholder_identification, stakeholder_process_disclosure, stakeholder_outcomes, stakeholder_coverage] engagements.reduce((weighted_sum, engagement) -> weighted_sum + 0.2 * score(engagement) , 0)