Changing what was going to be a curse word into an acceptable word right before saying it. Example: Realizing she was in church when she stubbed her toe, Susan quickly bad-libbed and said Oh, sugar.
BAD-LIB
Meaning of BAD-LIB in English
Slang English vocab. Английский сленговый словарь. 2012