Code-switch language identification

Hello, I have a code-switching project in which I have to build a classifier to recognize 3 classes, laguage1, language2, or language1-2(mix). Which algorithm and methodology should I use?