EduCSW: Building a Mandarin-English Code-Switched Generation Pipeline for Computer Science Learning

This paper presents EduCSW, a novel pipeline for generating Mandarin-English codeswitched text to support AI-powered educational tools that adapt computer science instruction to learners' language proficiency through mixed-language delivery.To address the scarcity of code-mixed datasets, we propose an encoder-decoder architecture that generates natural code-switched text using only minimal existing code-mixed examples and parallel corpora.Evaluated on a corpus curated for computer science education, human annotators rated 60-64% of our model's outputs as natural, significantly outperforming both a baseline fine-tuned neural machine translation (NMT) model (22-24%) and the DeepSeek-R1 model (34-44%).The generated text achieves a Code-Mixing Index (CMI) of 25.28%, aligning with patterns observed in spontaneous Mandarin-English code-switching.Designed to be generalizable across language pairs and domains, this pipeline lays the groundwork for generating training data to support the development of educational tools with dynamic code-switching capabilities.

Authors

Institutions

Publication Details

Published
2025-01-01
DOI
https://doi.org/10.18653/v1/2025.bea-1.68
Primary Topic
Online Learning and Analytics
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

EduCSW: Building a Mandarin-English Code-Switched Generation Pipeline for Computer Science Learning

Allen Chen, Yiling Zhao
Online Learning and Analytics
article

EduCSW: Building a Mandarin-English Code-Switched Generation Pipeline for Computer Science Learning

Allen Chen, Yiling Zhao
article en

Abstract

This paper presents EduCSW, a novel pipeline for generating Mandarin-English codeswitched text to support AI-powered educational tools that adapt computer science instruction to learners' language proficiency through mixed-language delivery.To address the scarcity of code-mixed datasets, we propose an encoder-decoder architecture that generates natural code-switched text using only minimal existing code-mixed examples and parallel corpora.Evaluated on a corpus curated for computer science education, human annotators rated 60-64% of our model's outputs as natural, significantly outperforming both a baseline fine-tuned neural machine translation (NMT) model (22-24%) and the DeepSeek-R1 model (34-44%).The generated text achieves a Code-Mixing Index (CMI) of 25.28%, aligning with patterns observed in spontaneous Mandarin-English code-switching.Designed to be generalizable across language pairs and domains, this pipeline lays the groundwork for generating training data to support the development of educational tools with dynamic code-switching capabilities.

Stanford University (US)
Quality Education
Openalex Percentile: Top 80%
Online Learning and Analytics
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.