nearly (adv.)

1530s, "carefully;" sense of "almost, all but" is from 1680s; see near + -ly (2).