NaturalEdit: Code Modification through Direct Interaction with Adaptive Natural Language Representation
Abstract
Code modification requires developers to comprehend code, plan changes, articulate intent, and validate outcomes, making it cognitively demanding. While natural language (NL) code summaries offer a promising external representation of this process, existing approaches remain limited. Systems grounded in exploratory data analysis are restricted to narrow domains, while general-purpose systems enforce fixed NL representations and assume that developers can directly translate vague intent into precise textual edits. We present NaturalEdit, which treats code summaries as interactive representations tightly linked to source code. Grounded in the Cognitive Dimensions of Notations, NaturalEdit introduces three key features: (1) adaptive, multi-faceted code summaries with a flexible Abstraction Gradient; (2) interactive mapping mechanisms between summaries and code that ensure tight, structurally stable Closeness of Mapping; and (3) intent-driven bidirectional synchronization that reduces Viscosity during editing while preserving Visibility and Consistency through incremental diffs. A technical evaluation confirms NaturalEdit’s viability, and a user study with 20 developers shows that it improves comprehension, intent articulation, and validation while increasing developers’ perceived confidence and control.
- Venue
- UIST 2026
- Volume
- Proceedings of the 39th Annual ACM Symposium on User Interface Software and Technology
- DOI
- 10.1145/3830398.3830631
- https://dl.acm.org/doi/pdf/10.1145/3830398.3830631
- Anthology ID
2026.uist.156
Cite
@inproceedings{tang-etal-2026-naturaledit,
title = {{NaturalEdit: Code Modification through Direct Interaction with Adaptive Natural Language Representation}},
author = {Ningzhi Tang and David Meininger and Gelei Xu and Yiyu Shi and Yu Huang and Collin McMillan and Toby Jia-Jun Li},
booktitle = {Proceedings of the 39th Annual ACM Symposium on User Interface Software and Technology},
isbn = {9798400728563},
year = {2026},
publisher = {Association for Computing Machinery},
address = {New York, NY, USA},
doi = {10.1145/3830398.3830631},
url = {https://doi.org/10.1145/3830398.3830631},
abstract = {Code modification requires developers to comprehend code, plan changes, articulate intent, and validate outcomes, making it cognitively demanding. While natural language (NL) code summaries offer a promising external representation of this process, existing approaches remain limited. Systems grounded in exploratory data analysis are restricted to narrow domains, while general-purpose systems enforce fixed NL representations and assume that developers can directly translate vague intent into precise textual edits. We present NaturalEdit, which treats code summaries as interactive representations tightly linked to source code. Grounded in the Cognitive Dimensions of Notations, NaturalEdit introduces three key features: (1) adaptive, multi-faceted code summaries with a flexible Abstraction Gradient; (2) interactive mapping mechanisms between summaries and code that ensure tight, structurally stable Closeness of Mapping; and (3) intent-driven bidirectional synchronization that reduces Viscosity during editing while preserving Visibility and Consistency through incremental diffs. A technical evaluation confirms NaturalEdit’s viability, and a user study with 20 developers shows that it improves comprehension, intent articulation, and validation while increasing developers’ perceived confidence and control.}
}