Parse tags into categories or tags. Probably not the best implementation but it works