diglossia is a term used to describe a situation when 2 languages co-exist interdependently in the same society
in relation to arabic, [r] as in [ra: Lt] left; and [sh] as in [shaif] saw, are examples of diglossic variables.
In arabic speaking communities, code switching may take the form of an alternation