"Right speech" is one of the requirements on the 8-fold Path to enlightenment. Just look at the occasion as an opportunity to apologize IF you are willing and able to change how you speak. Having apologized makes repeating errors more and more difficult.
Usually something stupid, that prevented me from getting laid.
Once I figured that out - I stopped doing it.