Given a subset S of a group, define W(S).