This repository contains the analysis code for the experiments described in our paper:
Strategies of Code-switching in Human-Machine Dialogs Bilingualism: Language and Cognition (2025)
This directory contains analysis tools of the project.
First, there is a streamlit application with interactive dashboards; one for a single dialog session and another, for aggregate, multiple sessions.
To run the streamlit app
streamlit run app/home.py
The single dialog dashboard includes all the information included in the json file, including the chat, questionnaires’ answers, game time, bot’s version, as well as other post-process dialog properties.
In addition, there is jupyter notebook explore.ipynb (under offline/analysis/) analysing a compact csv version of all the data.
📄 Published Paper: Geckt D, Fricke M, Wintner S. Strategies of code-switching in human–machine dialogs. Bilingualism: Language and Cognition. Published online 2025:1-15. doi:10.1017/S1366728925100436
If you use this code in your work, please cite our paper:
@article{geckt2025strategiescodeswitchinghumanmachinedialogs,
title={Strategies of code-switching in human-machine dialogs},
author={Geckt, Dean and Fricke, Melinda and Wintner, Shuly},
journal={Bilingualism: Language and Cognition},
pages={1--15},
year={2025},
publisher={Cambridge University Press},
doi={10.1017/S1366728925100436},
url={https://doi.org/10.1017/S1366728925100436}
}
