I talk to myself all the time, it's about more structuring my thoughts. I also swear to myself all the time. Self swearing is quite frequent.
A sign of mental illness is when you talk to yourself, but think the person answering you (in your head) is someone else.
Now I don't care. Self-talk (today mostly done through typing stuff into a text editor) helps me focus.