A publication figure, in Python and R
A first draft, with Copilot
A first draft from an assistant, every number checked.
Lesson 4 of 5 · Present it in the tools you use
Try it yourself
- Python, after
import undata as untable = un.change("6.1.1", "LDCs", 2015, 2024) # safely managed drinking water prompt = un.for_ai(table, task="brief") un.ai_pack(table, "water-ldcs.zip", task="brief")
Remember: Check every number in the draft against the table before it goes anywhere.
Transcript
- AI assistants write fluent paragraphs. The risk is a fluent paragraph with a number nobody can trace. Here is how to draft with Copilot, or any assistant, and keep every number honest.
- Ask an assistant what a statistic is, and it may answer from memory, with no source and no year. Give it the statistic and ask what it means, and it has nothing to invent.
- un.change compares 2015 with 2024 across the least developed countries, for safely managed drinking water, SDG 6.1.1. un.for_ai turns the table into a prompt. Rules first: use only these numbers, name the source and the year, a missing country is not zero. Then the table, the 20 countries with no data, by name, and the task: a briefing paragraph for a UN report.
- Paste it into Copilot Chat. Here it is sent to GPT-5.4, through Azure, on 16 October 2026; Copilot’s wording will differ. The draft follows the rules. It names the source and the year, and it lists the countries with no data instead of skipping them. But look at the numbers: eight decimal places. Correct, and unusable in a report.
- So ask for what a report needs: one decimal place, plain text, under a hundred and thirty words. That is a usable first draft. Now the step that matters: check every number against the table. Here, all 21 match, years included. If one does not, it goes, however good the sentence. The assistant drafts. You sign.
- For longer work, un.ai_pack writes three files to upload instead: the data, a note on units, sources and gaps, and the prompt. Attach them in Copilot, and it can calculate from the file rather than from pasted text.
- Numbers in, never from memory. A year and a source on every figure. No data is not zero. And every number checked, by you, before it goes out.
- The assistant writes the first draft; the table keeps it honest. Next: a publication figure, in Python and R.