Text this: The Mathematics of Urban Morphology