Solemnly promise to utter obscenities (5)
I believe the answer is:
swear
'solemnly promise' is the definition.
(I've seen this in another clue)
I don't understand how the rest of the clue works.
Can you help me to learn more?
(Other definitions for swear that I've seen before include "Vow; blaspheme" , "Vow, attest" , "Emit oath or take vow" , "Promise on oath" , "Express annoyance" .)