Corpus analysis using MapReduce