Text this: Theory of Segmentation