How do you use sample texts from a database of texts (corpus) to clarify the meaning of a word?

I like to show the variety of meanings of a word based on its context, and that the meaning of a word emerges from the sentence within which it is used. How do you use sample texts from a database of texts (corpus) to clarify the meaning of a word?