created function to extract nouns from a blob