CSWBench: Evaluating Context-Sensitive Code-Switching in Creative Writing
Zewen Jiang, Yahan Li, Chenlu Guo, Diana Inkpen, Yuan Wu, Yi Chang
Key points
From the paper's conclusion- We introduce CSWBench, a benchmark for evaluating context-sensitive code-switching in creative writing through two complementary settings: Focused Narrative and Extended Narrative.
Abstract
Large language models (LLMs) have demonstrated multilingual capabilities across diverse language generation and understanding tasks. Yet effective code-switching requires more than multilingual proficiency: models must decide when, where, and why to switch languages in ways that fit the surrounding context. This context-sensitive ability remains insufficiently evaluated. We introduce CSWBench, a benchmark for evaluating context-sensitive code-switching in creative writing through two complementary settings: Focused Narrative and Extended Narrative. We further propose CSWEval, a theory-informed framework with two complementary levels: event-level evaluation of Licensing, Contextual Appropriateness, and Functional Gain, and whole-text evaluation of task-specific quality---overall literary and narrative quality in Focused Narrative and quality emphasizing multilingual organization in Extended Narrative. Evaluating twelve LLMs, we find that models exhibit meaningful but uneven code-switching competence across narrative contexts. Model differences are particularly pronounced in multilingual literary integration, while multilingual-focused dimensions show stronger difficulty effects overall than the general narrative dimensions; narratively salient switches are associated with stronger contextual and functional realization; and event-level CS quality is moderately associated with whole-text performance.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Beyond the Single Best Translation: A Functional–Probabilistic Framework for Skopos-Conditioned LLM TranslationInformation · 2026
- Latent Mechanisms of Language Control in Multilingual Language ModelsarXiv · 2026
- Large Language Models for Code Generation from Multilingual Prompts: A Curated Benchmark and a Study on Code QualityACM Transactions on Software Engineering and Methodology · 2026
- The State and Fate of Multilingual, Contextual Evaluation in the NLP WorldarXiv · 2026
- I play of the cello: Evaluating Constructional Bleeding in Multilingual LLMs with CALQUEarXiv · 2026
- A survey on large language models with multilingualism: recent advances and new frontiersArtificial Intelligence Review · 2026