get_nouns function

Extract nouns from row and column labels