Skip to main content

Content variation

In this section, we consider variation in the document structure – that is, adding or removing or modifying sentences depending on data values. For example if profits are increased by more than 50%, then say profits soared rather than profits rose and say this exceeded analysts’ expectations.

Over the last financial year, profits soared by 58%. This exceeded analysts’ expectations.

Over the last financial year, profits rose by 40%.

This variation can include different sentences or paragraphs depending on the input data. For example, if operating expenses have increased more than 5%, then include a paragraph describing this increase in operating expenses; otherwise do not mention operating expenses at all.

As in any testing, you should have test cases for each of the specific rules. Test the variations and the boundary case. For example: What if operating expenses have increased exactly 5%? Do you mention them or not? Does the sentence actually appear?