Text this: Study of imperfect production processes with shortages