What is SETTLED INSANITY term that is legal term and not medical term for a recurrent or a habitual mental illness .