def categorize(self, text): '''Wrap categorize and add boilerplate committees. ''' attrs = BaseCategorizer.categorize(self, text) committees = attrs['committees'] for committee in re.findall(committees_rgx, text, re.I): if committee not in committees: committees.append(committee) return attrs