Automated translation of engineering codes into executable python using template-based LLM generation: an empirical study on korean design standards
Wonbok Lee, Yoonjae Sung, Hyunwoo Lee, Justin K W Yeoh, Bonsang Koo
Key points
From the paper's conclusion- This study presents KDS2Code, a practical workflow for automatically translating engineering codes, specifically Korean Design Standards (KDS), into executable Python implementations to support BIM-based Automated Code Checking (ACC).
Abstract
This study presents KDS2Code, a practical workflow for automatically translating engineering codes, specifically Korean Design Standards (KDS), into executable Python implementations to support BIM-based Automated Code Checking (ACC). The proposed approach integrates hierarchical document parsing, table recognition, hybrid rule identification using regex-based filtering and LLM-based semantic classification, template-constrained code generation, and multi-level validation. A key feature is the separation of computational and non-computational clauses, enabling the extraction of implementable computational rules from text-based standards. The method was evaluated on four KDS 11 geotechnical and foundation-related documents. Across the evaluation set, 45 computational rules were identified and translated into Python implementations. Among them, 14/17 ground-truth (GT) rules achieved reference-based functional agreement. Separately, the 28 newly discovered rules achieved 27/28 initial and 28/28 corrected smoke-test passes. All generated implementations achieved structure validity, and no aggregated correctness rate was reported. The results indicate that remaining discrepancies mainly arise from ambiguity in engineering standard specifications rather than syntax, structure, or runtime failures. Overall, KDS2Code demonstrates an initial step toward scalable engineering-standard-to-code translation for digitalizing engineering standards in ACC applications.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Leveraging large language models for BIM-based automated compliance checkingAutomation in Construction · 2025
- Intelligent Retrieval of Corresponding Engineering Standard Clauses for Cross-Border Construction ProjectsBuildings · 2026
- Advancing engineering research through context-aware and knowledge graph–based retrieval-augmented generationFrontiers in Artificial Intelligence · 2025
- A Chain-of-Thought Prompt Engineering Framework for Automated Technical Specification Generation in Enterprise Integration: A Real-World Case StudyarXiv · 2026
- BIBIMBAP: A Benchmark for Instructional BIM-Based Automated ProgrammingarXiv · 2026
- Scientific Coding with Large Language Models: Evidence from Finite Element AnalysisarXiv · 2026