Knowledge Lexical analysis involves reading and extracting words from the input sentence and looking up those words in the dictionary. Semantic analysis involves identifying the semantic meaning of words in the input sentence by looking at those words in the context of other words in the sentence. This is one way that the wrong idea could be received. Semantic meanings include who does a particular action, when, and how it is done. Discourse analysis involves identifying the semantic meaning of words in the input sentence by looking at those words in the context of other sentences.
Pragmatic analysis involves formatting and generating an appropriate response.
This process includes determining the type of response to generate, finding information to put in the response, and setting up the response so that the words are in a certain format. Knowledge of conclusions from the above analyses enables a person to properly understand the spoken or written words, formulate an appropriate response, and act on that response.