comprise vs function as

comprise

verb
  • To contain or embrace. 

  • To compose; to constitute. 

  • To include, contain, or be made up of, defining the minimum elements, whether essential or inessential to define an invention. 

  • To be made up of; to consist of (especially a comprehensive list of parts). 

function as

How often have the words comprise and function as occurred in a corpus of books? (source: Google Ngram Viewer )