Text this: Formal Comparison of Spatial Socioeconomic Units Based on their Typological Properties