Yet, one of the feats is its ability to generate human-like text. This is achieved by pretraining model on a large corpus of text data, which allows it to learn patterns and structures of natural language. As a result, ChatGPT can generate text that is grammatically correct.