Text this: Assembly of confined nanoparticles in nematic phases