I don't know if anyone else came up with categories for spankings, but we did. For reference, here they are: -
Deterring - After the fact, when I have misbehaved. To deter future misbehaviour.
Detriggering - During the fact, when I’m upset. To calm me down.
Absolving - After the fact, when deterring isn’t necessary. To allow me to forgive myself.
Analgesic - When I am in emotional pain. To make it go away.