mlsanityData to 14 Oct 2026

Learning Natural Coding Conventions

arXiv 1402.4182 ↗First posted 17 Feb 2014cs.SEcited by 29

Not on the map. Why?

Abstract (arXiv)

Every programmer has a characteristic style, ranging from preferences about identifier naming to preferences about object relationships and design patterns. Coding conventions define a consistent syntactic style, fostering readability and hence maintainability. When collaborating, programmers strive to obey a project's coding conventions. However, one third of reviews of changes contain feedback about coding conventions, indicating that programmers do not always follow them and that project members care deeply about adherence. Unfortunately, programmers are often unaware of coding conventions because inferring them requires a global view, one that aggregates the many local decisions programmers make and identifies emergent consensus on style. We present NATURALIZE, a framework that learns the style of a codebase, and suggests revisions to improve stylistic consistency. NATURALIZE builds on recent work in applying statistical natural language processing to source code. We apply NATURALIZE to suggest natural identifier names and formatting conventions. We present four tools focused on ensuring natural code during development and release management, including code review. NATURALIZE achieves 94% accuracy in its top suggestions for identifier names and can even transfer knowledge about conventions across projects, leveraging a corpus of 10,968 open source projects. We used NATURALIZE to generate 18 patches for 5 open source projects: 14 were accepted.

Key facts. Cited by 29 papers in the map (data through 14 Oct 2026). First posted on arXiv 17 Feb 2014.

Builds on

No reference list yet.

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2021: 7; 2022: 6; 2023: 5; 2024: 7; 2025: 1; 2026: 3.

29 papers.

Sort:

By area:

  1. 2021Program Synthesis with Large Language Modelscited by 3,637
  2. 2024Vulnerability Detection with Code Language Models: How Far Are We?cited by 139
  3. 2021DOBF: A Deobfuscation Pre-Training Objective for Programming Languagescited by 68
  4. 2021Language-Agnostic Representation Learning of Source Code from Structure and Contextcited by 63
  5. 2023Natural Language Generation and Understanding of Big Code for AI-Assisted Programming: A Reviewcited by 32
  6. 2022Aligning Offline Metrics and Human Judgments of Value for Code Generation Modelscited by 14
  7. 2024MPCODER: Multi-user Personalized Code Generator with Explicit and Implicit Style Representation Learningcited by 12
  8. 2021VarCLR: Variable Semantic Representation Pre-training via Contrastive Learningcited by 11
  9. 2023Copilot for Xcode: Exploring AI-Assisted Programming by Prompting Cloud-based Large Language Modelscited by 11
  10. 2024Enhancing Automated Program Repair with Solution Designcited by 8
  11. 2021Variable Name Recovery in Decompiled Binary Code using Constrained Masked Language Modelingcited by 7
  12. 2022Syntax-Guided Program Reduction for Understanding Neural Code Intelligence Modelscited by 7
17 more
  1. 2021Code2Snapshot: Using Code Snapshots for Learning Representations of Source Codecited by 4
  2. 2022AdaptivePaste: Code Adaptation through Learning Semantics-aware Variable Usage Representationscited by 3
  3. 2022NeuDep: Neural Binary Memory Dependence Analysiscited by 3
  4. 2024Structured Code Representations Enable Data-Efficient Adaptation of Code Language Modelscited by 3
  5. 2025Deep Learning-Based Identification of Inconsistent Method Names: How Far Are We?cited by 2
  6. 2021Roosterize: Suggesting Lemma Names for Coq Verification Projects Using Deep Learningcited by 1
  7. 2022MLSmellHound: A Context-Aware Code Analysis Toolcited by 1
  8. 2024Out of style: Misadventures with LLMs and code style transfercited by 1
  9. 2022Extracting Label-specific Key Input Features for Neural Code Intelligence Modelscited by 0
  10. 2023Modelling Concurrency Bugs Using Machine Learningcited by 0
  11. 2023Epicure: Distilling Sequence Model Predictions into Patternscited by 0
  12. 2023Untargeted Code Authorship Evasion with Seq2Seq Transformationcited by 0
  13. 2024Autonomous Vehicles: Evolution of Artificial Intelligence and Learning Algorithmscited by 0
  14. 2024Contextual Augmented Multi-Model Programming (CAMP): A Hybrid Local-Cloud Copilot Frameworkcited by 0
  15. 2026Still Manual? Automated Linter Configuration via DSL-Based LLM Compilation of Coding Standardscited by 0
  16. 2026The Code Whisperer: LLM and Graph-Based AI for Smell and Vulnerability Resolutioncited by 0
  17. 2026Correct Code, Broken Contributions? SWE-CC: Benchmarking Repository Policy Compliance for Coding Agentscited by 0