Obsessive repetition of thoughts, phrases, or conversations; can be a symptom of Obsessive-Compulsive Disorder.
Example: Whenever the patient becomes agitated, she calms herself by repeating a specific phrase in her head. She also has a habit of mentally reviewing past conversations, worrying about whether she said anything inappropriate.
Grinnell, R. (2016). Mental Rituals. Psych Central. Retrieved on December 15, 2017, from https://psychcentral.com/encyclopedia/mental-rituals/