Text this: Measuring and understanding segregation