Code Translation using Large Language Models: What's the role of the Research Software Engineer?

Translating research code to other programming language enables researchers to reach beyond their own domain, increasing research impact whilst guarding against software obsolescence. Successful translation requires skills in both the source and target language, and the research domain; it is unlikely that any individual will be able to perform translation. Large language models (LLMs) support translation by amalgamating language and domain knowledge from many sources. RSEs play a role in this by implementing best practice and providing validation tools. We will discuss our experiences in developing a Claude Code plugin to support domain experts in statistics in translating Stata packages to R and Python.The plugin implements 4 skills; 1. Analyse and plan: Is the package well documented and tested? Which target language(s)? Create a new library or contribute to an existing library? 2. Translation to pseudocode: Translation to pseudocode supports human review without language expertise. Excludes any existing tests. 3. Pseudocode to target language(s): Translate; add infrastructure to support ongoing opensource development (CI testing, contributing guidelines, licenses). 4. Tests and documentation: Implement any existing Stata tests in target language; summarise test correspondence; highlight missing tests. Review documentation (examples, papers), and translate to target language (eg. Vignettes in R) We used the plugin in workshops with statisticians to translate a selection of Stata packages. We will discuss our experiences from the workshops and compare our results with existing research in code translation. We aim to provoke informed discussion about the role of RSEs and LLMs in code translation.

Authors

Institutions

Publication Details

Journal
Zenodo (CERN European Organization for Nuclear Research)
Published
2026-08-27
DOI
https://doi.org/10.5281/zenodo.22125153
Primary Topic
Probability and Statistical Research
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Code Translation using Large Language Models: What's the role of the Research Software Engineer?

Stephen Thompson, Asif U. Tamuri
Zenodo (CERN European Organization for Nuclear Research)
Probability and Statistical Research
article

Code Translation using Large Language Models: What's the role of the Research Software Engineer?

Stephen Thompson, Asif U. Tamuri
article en

Abstract

Translating research code to other programming language enables researchers to reach beyond their own domain, increasing research impact whilst guarding against software obsolescence. Successful translation requires skills in both the source and target language, and the research domain; it is unlikely that any individual will be able to perform translation. Large language models (LLMs) support translation by amalgamating language and domain knowledge from many sources. RSEs play a role in this by implementing best practice and providing validation tools. We will discuss our experiences in developing a Claude Code plugin to support domain experts in statistics in translating Stata packages to R and Python.The plugin implements 4 skills; 1. Analyse and plan: Is the package well documented and tested? Which target language(s)? Create a new library or contribute to an existing library? 2. Translation to pseudocode: Translation to pseudocode supports human review without language expertise. Excludes any existing tests. 3. Pseudocode to target language(s): Translate; add infrastructure to support ongoing opensource development (CI testing, contributing guidelines, licenses). 4. Tests and documentation: Implement any existing Stata tests in target language; summarise test correspondence; highlight missing tests. Review documentation (examples, papers), and translate to target language (eg. Vignettes in R) We used the plugin in workshops with statisticians to translate a selection of Stata packages. We will discuss our experiences from the workshops and compare our results with existing research in code translation. We aim to provoke informed discussion about the role of RSEs and LLMs in code translation.

Zenodo (CERN European Organization for Nuclear Research)
University College Lahore (PK)
Industry, innovation and infrastructure
Openalex Percentile: Top 7%
Probability and Statistical Research
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.