Customer Macro Help - Lead Scoring Contact Groups

I am looking to create a custom macro for lead scoring purposes. I want to assign the score of 5 to every contact in a contact group that has the word "Attendee" in the group name. If they are in 5 contact groups with the word "Attendee" I want them to recieve a score of 25.

Currently, I am able to do this, if I create a separate rule for each contact group. The problem is, there are MANY of these groups and new ones are created every week.

I am wondering if there is some code that can accomplish this without me creating a rule for EVERY group.

Below is the current macro I am using, but like I said, every group I have to create a separate rule.