Definition for mental competency

n.