added a definition array for querying the word type