International Peer-Reviewed Journal•Open Access•ISSN 2456-8880
[email protected]•+91-7433024337

Home / Current Issue / Paper 1725864

1725864 Vol 10 · Issue 5 Download Paper

Evaluating Regional-Language and Code-Mixed Explanations Generated by Large Language Models for Python Code Comprehension: A Comparative Study

Parshuram Manur Srushti Limhan Sarjerao Ghatge Avani Deshpande

Subject area: Science,Engineering and Technology  ·  Area of research: Large language model

DOI: 10.64388/ire1725864

Abstract

Large Language Models (LLMs) are increasingly used to explain source code to novice programmers, yet most evaluations assume English-language explanations. Many learners in Maharashtra think about programming in Marathi while relying on English technical vocabulary, so a Marathi-English code-mixed explanation may be more accessible, but only if it remains technically correct. This study asks whether LLM-generated code-mixed explanations are as useful as English ones. Ten Python programs covering variables and data types, conditionals, loops, functions, lists and dictionaries, string manipulation, recursion, exception handling, searching and sorting, and object-oriented programming were each explained by one fixed model (Claude Sonnet 5.5) in English and in Marathi-English using equivalent prompts. The study has two components. Component A is a learner-perception pilot: the same 20 students reported, for each format, whether they understood the explanations easily or needed time. In the English format 8 of 20 students (40%) understood easily; in the Marathi-English format 14 of 20 (70%) did. The 30-percentage-point difference favours Marathi-English. Because the same students rated both formats, the appropriate test is McNemar's exact test; the response totals alone place its two-sided p-value between 0.031 and 0.238, so the difference is reported as a trend and not as a confirmed effect. Component B is a five-criterion rubric evaluation (technical correctness, completeness, clarity, terminology consistency and debugging usefulness, 0 to 4 each) by two raters; this component is fully designed but its scores have not yet been collected. The survey measures perceived understanding only, not learning gain or technical accuracy. The main contribution is a reproducible protocol and rubric for evaluating regional-language explanations of code, together with a first small perception baseline for Marathi-English.

Keywords

large language models, code explanation, Python programming education, code-mixed language, Marathi, multilingual NLP, code comprehension

References

[1] L. Murphy, S. Fitzgerald, R. Lister, and R. McCauley, "Ability to 'explain in plain English' linked to proficiency in computer-based programming," in Proc. 9th Annu. Int. Conf. Int. Computing Education Research (ICER '12), Auckland, New Zealand, 2012, pp. 111-118, doi: 10.1145/2361276.2361299.

[2] J. Leinonen, P. Denny, S. MacNeil, S. Sarsa, S. Bernstein, J. Kim, A. Tran, and A. Hellas, "Comparing code explanations created by students and large language models," in Proc. 2023 Conf. Innovation and Technology in Computer Science Education V. 1 (ITiCSE 2023), Turku, Finland, 2023, pp. 124-130, doi: 10.1145/3587102.3588785.

[3] S. Sarsa, P. Denny, A. Hellas, and J. Leinonen, "Automatic generation of programming exercises and code explanations using large language models," in Proc. 2022 ACM Conf. Int. Computing Education Research V. 1 (ICER 2022), Lugano, Switzerland, 2022, doi: 10.1145/3501385.3543957.

[4] S. MacNeil, A. Tran, A. Hellas, J. Kim, S. Sarsa, P. Denny, S. Bernstein, and J. Leinonen, "Experiences from using code explanations generated by large language models in a web software development e-book," in Proc. 54th ACM Tech. Symp. Computer Science Education V. 1 (SIGCSE 2023), Toronto, ON, Canada, 2023, pp. 931-937, doi: 10.1145/3545945.3569785.

[5] A. B. Lekshmi Narayanan, P. Oli, J. Chapagain, M. Hassany, R. Banjade, P. Brusilovsky, and V. Rus, "Explaining code examples in introductory programming courses: LLM vs humans," EasyChair Preprint 12117, 2024 (also arXiv:2403.05538). [Online]. Available: https://arxiv.org/abs/2403.05538

[6] M. I. Sajib, S. Tamang, J. Chapagain, and V. Rus, "A study on how free use of LLMs assists novices with code comprehension tasks," Int. FLAIRS Conf. Proc., vol. 39, no. 1, 2026, doi: 10.32473/flairs.39.1.141647.

[7] J. Prather et al., "Breaking the programming language barrier: Multilingual prompting to empower non-native English learners," in Proc. 27th Australasian Computing Education Conf. (ACE '25), Brisbane, Australia, Feb. 2025; arXiv:2412.12800. [Online]. Available: https://arxiv.org/abs/2412.12800

[8] Ministry of Education, Government of India, "National Education Policy 2020," 2020. [Online]. Available: https://www.education.gov.in/sites/upload_files/mhrd/files/NEP_Final_English_0.pdf

[9] D. H. Smith IV, V. Kumar, and P. Denny, "Explain in Plain Language questions with Indic languages: Drawbacks, affordances, and opportunities," arXiv:2409.20297, Sep. 2024 (preprint). [Online]. Available: https://arxiv.org/abs/2409.20297

[10] T. Chavan, O. Gokhale, A. Kane, S. Patankar, and R. Joshi, "My Boli: Code-mixed Marathi-English corpora, pretrained language models and evaluation benchmarks," arXiv:2306.14030, Jul. 2023 (preprint). [Online]. Available: https://arxiv.org/abs/2306.14030

[11] Q. Peng, Y. Chai, and X. Li, "HumanEval-XL: A multilingual code generation benchmark for cross-lingual natural language generalization," in Proc. 2024 Joint Int. Conf. Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024), Torino, Italy, May 2024, pp. 8383-8394. [Online]. Available: https://aclanthology.org/2024.lrec-main.735

[12] M. Pawagi, A. Gupta, S. R. Rolla, and K. Saha, "HinglishEval: Evaluating the effectiveness of code-generation models on Hinglish prompts," Indian Institute of Science, Bengaluru, India (publication venue not confirmed). [Online]. Available: https://kiac.iisc.ac.in/wp-content/uploads/2025/06/HinglishEval.pdf

[13] P. Denny, D. H. Smith IV, M. Fowler, J. Prather, B. A. Becker, and J. Leinonen, "Explaining code with a purpose: An integrated approach for developing code comprehension and prompting skills," in Proc. 2024 Conf. Innovation and Technology in Computer Science Education V. 1 (ITiCSE 2024), Milan, Italy, 2024, pp. 283-289, doi: 10.1145/3649217.3653587.

[14] U. Singh, A. Sharma, N. Gupta, Deepakshi, and V. K. Jha, "IndicEval-XL: Bridging linguistic diversity in code generation across Indic languages," arXiv:2502.19067, Feb. 2025 (preprint). [Online]. Available: https://arxiv.org/abs/2502.19067

[15] M. Jordan, K. Ly, and A. G. Soosai Raj, "Need a programming exercise generated in your native language? ChatGPT's got your back: Automatic generation of non-English programming exercises using OpenAI GPT-3.5," in Proc. 55th ACM Tech. Symp. Computer Science Education V. 1 (SIGCSE 2024), 2024, pp. 618-624.

[16] J. Katzy et al., "Evaluating non-English developer support in machine learning for software engineering," arXiv:2605.05902, May 2026 (preprint). [Online]. Available: https://arxiv.org/abs/2605.05902

[17] M. Sheokand and P. Sawant, "CodeMixBench: Evaluating large language models on code generation with code-mixed prompts," arXiv:2505.05063, May 2025 (preprint). [Online]. Available: https://arxiv.org/abs/2505.05063

[18] J. Cohen, "A coefficient of agreement for nominal scales," Educ. Psychol. Meas., vol. 20, no. 1, pp. 37-46, 1960.

How to cite this paper

Parshuram Manur, Srushti Limhan, Sarjerao Ghatge, Avani Deshpande "Evaluating Regional-Language and Code-Mixed Explanations Generated by Large Language Models for Python Code Comprehension: A Comparative Study" Iconic Research And Engineering Journals Volume 10 Issue 5 2026 Page 7425-7439 https://doi.org/10.64388/ire1725864
Parshuram Manur, Srushti Limhan, Sarjerao Ghatge, Avani Deshpande "Evaluating Regional-Language and Code-Mixed Explanations Generated by Large Language Models for Python Code Comprehension: A Comparative Study" Iconic Research And Engineering Journals, vol. 10, no. 5, Nov. 2026, doi: https://doi.org/10.64388/ire1725864
Parshuram Manur, Srushti Limhan, Sarjerao Ghatge, Avani Deshpande (2026). Evaluating Regional-Language and Code-Mixed Explanations Generated by Large Language Models for Python Code Comprehension: A Comparative Study. Iconic Research And Engineering Journals, 10(5). doi: https://doi.org/10.64388/ire1725864
Parshuram Manur, Srushti Limhan, Sarjerao Ghatge, Avani Deshpande "Evaluating Regional-Language and Code-Mixed Explanations Generated by Large Language Models for Python Code Comprehension: A Comparative Study" Iconic Research And Engineering Journals, vol. 10, no. 5, Nov. 2026. Crossref, https://doi.org/10.64388/ire1725864
@article{1725864,
      author = {Parshuram Manur, Srushti Limhan, Sarjerao Ghatge, Avani Deshpande},
      title = {Evaluating Regional-Language and Code-Mixed Explanations Generated by Large Language Models for Python Code Comprehension: A Comparative Study},
      journal = {Iconic Research And Engineering Journals},
      year = {2026},
      volume = {10},
      number = {5},
      pages = {7425-7439},
      issn = {2456-8880},
      url = {https://www.irejournals.com/formatedpaper/1725864.pdf},
      abstract = {Large Language Models (LLMs) are increasingly used to explain source code to novice programmers, yet most evaluations assume English-language explanations. Many learners in Maharashtra think about programming in Marathi while relying on English technical vocabulary, so a Marathi-English code-mixed explanation may be more accessible, but only if it remains technically correct. This study asks whether LLM-generated code-mixed explanations are as useful as English ones. Ten Python programs covering variables and data types, conditionals, loops, functions, lists and dictionaries, string manipulation, recursion, exception handling, searching and sorting, and object-oriented programming were each explained by one fixed model (Claude Sonnet 5.5) in English and in Marathi-English using equivalent prompts. The study has two components. Component A is a learner-perception pilot: the same 20 students reported, for each format, whether they understood the explanations easily or needed time. In the English format 8 of 20 students (40%) understood easily; in the Marathi-English format 14 of 20 (70%) did. The 30-percentage-point difference favours Marathi-English. Because the same students rated both formats, the appropriate test is McNemar's exact test; the response totals alone place its two-sided p-value between 0.031 and 0.238, so the difference is reported as a trend and not as a confirmed effect. Component B is a five-criterion rubric evaluation (technical correctness, completeness, clarity, terminology consistency and debugging usefulness, 0 to 4 each) by two raters; this component is fully designed but its scores have not yet been collected. The survey measures perceived understanding only, not learning gain or technical accuracy. The main contribution is a reproducible protocol and rubric for evaluating regional-language explanations of code, together with a first small perception baseline for Marathi-English.},
      keywords = {large language models, code explanation, Python programming education, code-mixed language, Marathi, multilingual NLP, code comprehension},
      month = {November},
      doi = {https://doi.org/10.64388/ire1725864}
  }