Text this: Polarization of homogeneous groups of territorial entities