Text analysis or text mining are blanket terms for analyzing lots of documents (books, tweets, news reports, etc) at scale and with the aid of computers. This is a process which is linguistic in practice, as it deals specifically with language, context and patterns. Text analysis is therefore not a discipline but a methodological approach which also intersects with other disciplines, including but certainly not limited to sociology, communications, history, literary study, math, logic, cognitive science, and computer science. Text analysis is performed on corpora, collections of machine-readable text that are designed to answer specific kinds of questions. This guide offers the basics of the theoretical perspectives behind different kinds of text mining and software and methods involved, with a particular bent towards corpus methods.