Calculating speakers: Codeswitching in a rational choice model | Synapse