ChatGPT for Code Refactoring: Analyzing Topics, Interaction, and Effective Prompts
Eman Abdullah AlOmar 1 , Luo Xu 1 , Sofia Martinez 1 , Anthony Peruma 2 , Mohamed Wiem Mkaouer 3 , Christian D. Newman 4 , Ali Ouni 5 · 2025
Read ChatGPT for Code Refactoring: Analyzing Topics, Interaction, and Effective Prompts by Eman Abdullah AlOmar 1 , Luo Xu 1 , Sofia Martinez 1 , Anthony Peruma 2 , Mohamed Wiem Mkaouer 3 , Christian D. Newman 4 , Ali Ouni 5 (2025) in the Tower of Babel, a free online library of public-domain works preserved in clean, searchable text. No sign-up. The full text is served as a plain-text file at a predictable URL, where text is present: https://antarctic-labs.com/tower-of-babel/arxiv-2509-08090.txt.
Description
Developers now ask ChatGPT to clean up their code, but how they phrase those requests is poorly understood. Eman Abdullah AlOmar and 6 co-authors mine real conversations in a 2025 research paper. They extracted hundreds of refactoring-related exchanges from a large public collection of ChatGPT prompts and responses. Refactoring means restructuring code without changing what it does.
The team analyzes the topics developers raise and the intentions they state explicitly. They also study how ChatGPT responds and which prompt styles work. The goal is a clearer picture of the collaboration between programmer and chatbot. Findings like these can guide better tools and better prompting habits. They also show where the model misunderstands what developers actually want from a cleanup, informing the design of future coding assistants.
Catalog record
| CREATOR | Eman Abdullah AlOmar 1 , Luo Xu 1 , Sofia Martinez 1 , Anthony Peruma 2 , Mohamed Wiem Mkaouer 3 , Christian D. Newman 4 , Ali Ouni 5 |
|---|---|
| YEAR | 2025 |
| COLLECTION | PAPERS |
| FORMAT | TXT |
| FILE SIZE | 51 KB |
| VERSION | 1.0 |
| LICENSE | http://creativecommons.org/licenses/by/4.0/ |
| RIGHTS | CC BY |
| SOURCE | arXiv |
Source: https://arxiv.org/abs/2509-08090