Corpus factory