I believe the rule book states any foul language is an automatic RED, no discretion is allowed1
Section 8, ART 3 . . . a player, coach or bench personnel shall be disqualified (red card) for:
g. using insulting, offensive or abusive language or gesture;
Had it been incidental then it would be yellow, if they continue a second yellow card...so basically two technical's equal's ejection. Section 8, ART 1 d.