Parse categories
Hacky way to produce list of patterns