Patterns of group identity