Gaining

The act of cutting grooves or mortises in timbers.