1. A system, comprising: at least one hardware processor; and at least one non-transitory computer-readable storage medium storing instructions that, when executed by the at least one hardware processor, cause the at least one hardware processor to perform: accessing information specifying at least one referential expression for a first referent and at least one anaphoric expression for the first referent; accessing a template including human-language text, a first tag that serves as a placeholder for a first text portion including a first reference to the first referent, a second tag that precedes the first tag in the template and serves as a placeholder for a second text portion including a second reference to a second referent different from the first referent, and a third tag that precedes the second tag in the template and serves as a placeholder for a third text portion including a third reference to the first referent; determining whether using the at least one anaphoric expression for the first text portion would result in the insertion of an ambiguous reference in the output text by determining whether the first and second referents are of the same type, whether the first and second referents are mutually ambiguous, or whether the first and second referents are of the same type and whether the first and second referents are mutually ambiguous; identifying text to use for the first text portion based on results of determining whether using the at least one anaphoric expression would result in the insertion of an ambiguous reference in the output text, the identifying comprising: when it is determined that using the at least one anaphoric expression as the text for the first text portion would result in the insertion of an ambiguous reference, making a determination to use the at least one referential expression as the text for the first text portion; and when it is determined that using the at least one anaphoric expression as the text for the first text portion would not result in the insertion of an ambiguous reference, making a determination to use the at least one anaphoric expression as the text for the first text portion; automatically generating output text including the human-language text and the identified text for the first text portion; and presenting, via a device, the automatically generated output text to a user.