The Latin term "Non compus mentis" means, in a UK legal context: "not of sound mind and understanding".