Text this: Compensation of defective workpiece based on adaptive calculation of technological dimensions