Text this: Detection of the permutation symmetry in pattern sets