N.Y. General Construction Law § 28
The terms lunatic, mentally ill person, lunacy and mental illness include every kind of unsoundness of mind except idiocy or mental retardation.