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 October 21, 2016, from http://psychcentral.com/encyclopedia/mental-rituals/