It's a simple EQ, no grammar LL, abstract syntax tree or other lexers !
In fact, every word in a sentence is analyzed: we look at the dictionary if the word is, otherwise, there are words like him,...