extract_terms function

Extract common terms from a corpus