Word-level Natural Language Processing Algorithm