Non compos mentis has 2 different meanings across 1 category:
Adjective
not of sound mind, memory, or understanding; in law, not competent to go to trial
Insane; not of sound mind; not in control of oneself.