Word-level Semantic Analysis Algorithm