1. A method comprising: receiving an ordered collection of text-based terms; analyzing groupings of consecutive text-based terms in the ordered collection to identify occurrences of different combinations of consecutive text-based terms in the ordered collection; and maintaining frequency information representing the occurrences of the different combinations of consecutive text-based terms in the collection.