Given a list of words, group them into two sets according to their part of speech, nouns and verbs
Input: laugh, jump, walk, family
Nouns: laugh, family
Verbs: jump, walk
Nouns: laugh, family 
Verbs: jump, walk