A doctor can usually diagnose this condition with a physical exam. Tests should be done to rule out other potential causes of such behaviors, including Tourette syndrome, stimulant abuse, and autism.
American Psychiatric Association. Diagnostic and Statistical Manual of Mental Disorders. 4th ed. Washington, DC: American Psychiatric Association; 1994.