Text this: Nested Pattern Detection and Unidimensional Process Characterization