The need for confession relies on the
seriousness of the sin. This is not as straightforward as one might think.
Also it should be understood that sin is in the will, so if you plan on murdering your neighbor, for example, but never get the chance and our neighbor drops dead of a heart attack, you are still guilty of murder as far as the 'sin' part goes. It would be a "matter for confession".
BTW, taking God's name in vain refers to swearing a false oath, either as a matter of civil or canon law.
Only serious, or what the RCC calls "mortal sins"; those that, through an act of "knowing" will on you part, separate you from the God's grace require confession.
Catholics trot onto the confessional with all sorts of perceived sins, and it's all very cathartic, but few are truly guilty of sins that
require confession.
So to wrap up, if your character is headed to the confessional, and if he / she knows what the sacrament is really about, it had better warrant the confession to be accurate for your story to work.
The formula for confession can easily be found on line.
Keep in mind that the priest's absolution is only valid, if the penitent is truly repentant, and if all the factors regarding the sin(s) are revealed. Also, there two types of contrition, one is conditional, I'm afraid to go to hell. One is unconditional contrition, I'm heartbroken and sorry. Both are valid in order to receive absolution and the prayer for contrition must be spoken in the presence of the priest.
Go with God.
C
So a man walks into a confessional... What does the priest typically say? Is there a sort of script you follow? I get that a person confesses their sins; do they name specific things or just "I lied, I said God's name in vain," etc etc.? What does the priest do/say when you're finished?
Any and all info is welcome. I'm pretty clueless here. All I know about this comes from books and TV, and I want to make sure I'm not propagating any stereotypes.
Thanks!