My own implementation of Sequitur[1], a method for inferring compositional hierarchies from strings. [1] Nevill-Manning, C.G. and Witten, I.H. (1997) "Identifying Hierarchical Structure in Sequences: A linear-time algorithm", Journal of Artificial Intelligence Research, 7, 67-82