Type English and Mandarin without switching input method


在这里, I can type in pinyin, 或者输入中文, 并不需要切换输入法.


As more people are connected to the Internet around the world, an increasing number of multilingual texts can be found, especially in informal, online platforms such as Twitter and Weibo. Mandarin is often mixed with English; such a phenomenon is called codeswitching.

Unlike English, Chinese characters cannot be typed directly using a latin-script keyboard. Mandarin speakers often type in Pinyin, the most widely used romanization schemes for Mandarin. A Pinyin Input Method Editor (IME) is used to convert Pinyin into Chinese characters. To type both English and Mandarin in a same sentence, users must repeatedly toggle on and off the IME, which is a major inconvenience.

How it works

Using this system

Please contact me for access to the REST api endpoint.

Citing this work

M. Xia and J. Cheung, Accurate Pinyin-English codeswitched language identification

    title={Accurate Pinyin-English codeswitched language identifications},
    author={Xia, Meng Xuan and Cheung, Jackie Chi Kit},


My name is Meng Xuan Xia. I graduated from McGill University in 2016 with a major in Honours Computer Science.

I'm a full stack developer and a novice NLP researcher.

An automatic news summarizer
Elegant pomodoro timer for all Windows 10 devices
Undercover Camera
Take pictures on the sly