added min and max length checks to sampled translation word set length