Textrank is a graph-based method for summarization that works by (1) separating text into sentences, (2) building a sparse matrix of word counts in each sentence, (3) normalizing words with tf-idf scores, (4) constructing a similarity matrix between sentences based on shared words, and (5) using PageRank to score sentences based on their similarity to other sentences.