Large language model
How can a program that guesses the next word write an essay?
It only predicts the most likely continuation, one piece of a word at a time. But to guess well across billions of texts, it had to learn grammar, facts and the structure of reasoning along the way.