Often considered a linguistics topic, corpus analysis is the study of language in a corpus, often analyzing the distribution of various phenomena (phonological, lexical, syntactic, etc). Sometimes the analysis is performed comparing across time, languages, or different genres.
Zipf's law describes the frequency distribution of words in language.