compulsivity

noun
  1. the quality or state of being compulsive; a tendency to act or behave in ways that are difficult to control or resist.
  2. Usage: often used in psychology and clinical contexts; can refer to both pathological and non-pathological repetitive behaviors

Examples