While its not always factual or logical, ChatGPTs mastery of language and grammar comes from having ingested a huge trove of digitized books, Wikipedia entries, instruction manuals, newspapers and other online writings ( ).