Work

Automated Documentation Engineering: A Framework for Code-Documentation Traceability, Assessment, and Maintenance

Year: 2026
Type: dissertation
Abstract: API reference documentation helps developers understand and use software, but missing, incomplete, and outdated explanations can accumulate as documentation debt. Addressing these problems requires identifying the implementation an entry describes and the documentation components that need attention. These connections are often implicit in published web pages and PDF manuals. Recovering them supports selective maintenance, but recovery errors must be distinguished from problems in the published documentation. This thesis develops an automated documentation engineering framework that connects Python implementations with published API reference components and uses these connections for assessment and maintenance. Three studies examine its recovery infrastructure, perceived adoption effort and utility, and maintenance capabilities. The first develops MapCoDoc, which links implementations, public API identities, reference entries, and components such as parameter descriptions, examples, and supplementary information in a queryable database. Across 7,774 documented APIs from seven libraries, it resolves 5,289 identities (68.0%). In a paired sample of 1,442 members, entry recovery is correct in 98.2% of web cases and 78.8% of PDF cases. Fidelity assessment after correct recovery examines source grounding, categorization, and structural presence, identifying weaknesses in return information and examples. The second study surveys 42 respondents after demonstrations of MapCoDoc and Sphinx. Participants generally perceive lower adoption effort for MapCoDoc and endorse applications in documentation maintenance, developer assistance, and research. These findings describe expectations rather than measured productivity benefits. The third study extends the linked infrastructure to assess documentation, repair individual components, detect incorrect associations, and reconstruct wrong or missing entries. Human evaluation estimates that 56% of reported accuracy findings are confirmed after population weighting (95% confidence interval: 37–74%). Across 1,277 web entries judged completely recovered, committed changes clear all reported findings from 3.4% of flagged components. Generated candidates for a further 12.5% remain held for review. Two raters accept 36 and 31 of 60 reconstructed entries as written; unsupported statements and omitted explanations remain in some entries. The thesis integrates recovery, component assessment, selective repair, and reconstruction through a shared representation of code and documentation. Its findings show the importance of preserving useful explanations and establishing whether apparent defects originate in documentation or recovery. Developer task studies and longitudinal evaluation are needed to determine the framework’s prolonged effects on program comprehension and documentation debt.
Language: English
Open Access status: green
OpenAlex ID: W7225765434
Cites: 98
Cited by:
Related to: 9