You can create a grammar tree for any sentence to see the role of each word, and then get the meaning of the word based on its position in the sentence.