See 646-page PDF “Speech and Language Processing — Introduction to Natural Language Processing, Computational Linguistics, and Speech Recognition with Language Models” here: https://web.stanford.edu/~jurafsky/slp3/ed3book_aug26.pdf [3rd Edition draft]