In a traditional generation pipeline, referring expression generation happens at the sentence planning level.
its output is not a textual nugget but a description employed later on by the surface realizer.