Chapter 2 · Everyday Work: Writing, Summarising, Classifying
Classifying and Checking: Categories, Sentiment, Tables and Missing Data
- Page 10 of 24
- 20 min read
A label with no reason behind it is hard to trust. If an assistant tells you a comment is "negative" or that an invoice total is 253.00, you have two choices: believe it, or look. Looking is cheap only if the reply makes it easy: an exact quote you can search for, a table whose columns never change, a list of what is missing. This page teaches you to design prompts so that the reply carries its own proof, and then to run a second check against the source.
It continues Summarising and Extracting: Summaries, Key Facts and Evidence, where you wrote prompts for summaries, extraction and classification. Here you add evidence, contradiction checks, comparisons, tables and verification. Everything rests on the habits from What a Prompt Really Is: Goal, Audience, Context and Deliverable (decide the deliverable first) and The Anatomy of a Good Prompt: Task, Context, Input and Output Format (state the output format). All texts below are invented.
What you will learn
- How to ask for evidence for a label or a fact, and how to confirm that the evidence is really in the source.
- How to find contradictions inside one text and differences between two texts, without the model "fixing" them silently.
- How to get fixed-column tables and structured fields out of messy notes, and how to check that every required field is present.
- How to run a verification pass that compares an extraction with its source, and a small dataset exercise to practise it all.
Extract evidence for each classification
Ask the model to justify every label with the exact words from the item that led to it. This does two things. It makes the model attach its answer to the text, and it gives you something to check in seconds. Here are four invented comments from the online clothing shop Tide & Thread.
Prompt:
Classify each comment into one category: Delivery, Product quality, Price, Support,
Other, or UNCLEAR (too vague to tell).
For each comment give: number | category | evidence
"evidence" must be an exact quote from the comment, at most 8 words, copied
character by character. If the category is UNCLEAR, write evidence: none.
Comments:
###
1. The parcel came three days after the date in the email.
2. Why is shipping more than the price of the socks?
3. The chat agent was polite but could not tell me where my order is.
4. Please fix it.
###Example reply (illustrative; yours will differ):
1 | Delivery | "came three days after the date"
2 | Price | "shipping costs too much"
3 | Support | "could not tell me where my order is"
4 | UNCLEAR | noneCheck each quote by searching for it in the comment (use the find function of your text editor). Lines 1, 3 and 4 pass. In line 2 the quote "shipping costs too much" does not appear: the comment says "shipping is more than the price of the socks". The label may still be right, but the model paraphrased while it claimed to quote. This is a typical failure pattern, and it is exactly what the evidence field is for. A quote that cannot be found means you should look at the label more closely, not only fix the quote.
Identify contradictory statements in a source
Real documents contradict themselves: two dates for one event, two totals, a rule and its exception. A model summarising such a text will often pick one version and hide the other. Ask for the contradiction explicitly and forbid resolving it.
Team memo, 2026-10-14. The training day is on Thursday 2026-11-12 in Room B.
We have booked 40 seats. Please arrive by 09:00. Lunch is provided for all
45 participants. Because the trainer is only free on Friday, please keep Friday
free in your calendar.Prompt:
Find statements in the memo below that contradict each other.
For each contradiction show: the two quotes, and one sentence on what conflicts.
Do not decide which one is correct. Do not combine them.
If you find no contradiction, write: No contradictions found.
Memo:
###
(paste the memo here)
###Example reply (illustrative; yours will differ):
1. "on Thursday 2026-11-12" vs "the trainer is only free on Friday"
The training day is given as Thursday, but the trainer is free only on Friday.
2. "We have booked 40 seats" vs "for all 45 participants"
Five more participants than seats.The reply finds both conflicts and leaves them for a person to resolve. What to verify: both quotes are in the memo; you agree the statements really conflict (a good reply does not invent conflicts, and a weaker one may miss a quiet one, like a number that changes between paragraphs); and then you, or the author, decide the truth. The model cannot know whether the memo should say Thursday or Friday.
Compare two documents for differences
Comparison is hard to do by eye and easy to skim. Give both versions clearly labelled, ask for differences only, and ask for a quote from each version so every difference can be checked.
Version A (2026-09-01): Meeting rooms can be booked up to 14 days ahead.
Cancellation is free up to 24 hours before the start. The room fee is 20 per hour.
Members get 5 free hours per month. Rooms are available from 08:00 to 20:00.
Version B (2026-10-01): Meeting rooms can be booked up to 30 days ahead.
Cancellation is free up to 48 hours before the start. The room fee is 20 per hour.
Members get 3 free hours per month. Rooms are available from 08:00 to 20:00.Prompt:
Compare Version A and Version B below. List every difference as a bullet:
"Topic: A says ..., B says ..." with short exact quotes from each version.
Then list the topics that did not change. Do not guess the reason for a change.
(paste Version A and Version B here)Example reply (illustrative; yours will differ):
Differences:
- Booking window: A says "up to 14 days ahead", B says "up to 30 days ahead"
- Free cancellation: A says "up to 24 hours", B says "up to 48 hours"
Unchanged:
- Room fee (20 per hour)
- Opening hours (08:00 to 20:00)The reply looks complete, and it is not. The source has five topics (booking window, cancellation, fee, free hours, hours). The reply covers four, and the change from 5 to 3 free hours is missing. Models can skip a difference without any sign. The safe habit is to count: five topics in, five topics out. When a comparison matters (a contract, a policy, a price list), ask for every topic in a table and check the row count, or compare the two texts with a normal text-compare tool as well.
Create a table with fixed column names
If you will paste the result into a spreadsheet, the columns must be the same every time. Name the columns exactly, say that there must be no other columns, and say what to write in an empty cell. Here are four invented sign-up notes for a language club in Osaka.
Prompt:
Make a table with exactly these columns, in this order:
Name | Session | Paid
- One row per person. No extra columns, no extra rows, no commentary.
- Session must be Morning or Evening. Paid must be Yes or No.
- If the notes do not say, write UNKNOWN in that cell.
Notes:
###
Aiko signed up for the morning session, paid.
Mateo - evening, not paid yet.
Nadia wants to join, no session chosen. Paid.
Kwame, morning.
###Example reply (illustrative; yours will differ):
| Name | Session | Payment |
|--------|---------|---------|
| Aiko | Morning | Yes |
| Mateo | Evening | No |
| Nadia | UNKNOWN | Yes |
| Kwame | Morning | No |Two problems, both common. The header says Payment, not Paid: a spreadsheet import that expects Paid would fail or create a new column. And Kwame's "Paid" is No, but the note does not say. The correct cell is UNKNOWN. A tidy table feels trustworthy, so check three things every time: the exact header text, the number of rows against the number of items, and every cell that you did not see written in the source.
Convert unstructured notes into structured fields
Notes are written for the writer. To use them in a form or a customer database, you must turn them into named fields. The rule that matters is to keep what is written and not tidy it into something more certain. Here is a short invented note and a field list.
Call with Hamid Rahimi re roof leak. Wants quote by Friday. Budget about 8k?
Address: 14 Cedar Lane. Said his neighbour had same problem. Will send photos.Prompt:
Convert the note below into these fields, one per line, as "field: value":
client_name, job, deadline, budget, address, phone, follow_up
- Copy wording from the note. Do not convert, round or complete anything.
- If the note is uncertain (for example "about" or "?"), keep that uncertainty.
- If a field is not in the note, write NOT STATED.
Note:
###
(paste the note here)
###Example reply (illustrative; yours will differ):
client_name: Hamid Rahimi
job: roof leak
deadline: 2026-10-16
budget: 8000
address: 14 Cedar Lane
phone: NOT STATED
follow_up: client will send photosCompare with the note. The deadline in the note is "Friday", with no date. The reply turned it into 2026-10-16, a date the model had no way to know. And "about 8k?" became 8000: the "about", the question mark and the unknown currency are gone. Both are typical "tidy-up" failures, and they are dangerous because the result looks cleaner than the truth. The fix is in the prompt (as above) and in your check: compare every value with the note, especially relative dates, rounded numbers and anything that sounds more certain than the source.
Summarise without adding outside information
A model has general knowledge, and it likes to use it: a reason, a comparison, a forecast. In a summary of your own data, that is a problem, because the reader cannot tell your facts from its background. Say plainly that the summary is a closed world.
Kwame's shop, Accra Home Goods, sold 320 mugs in October, up from 250 in September.
There were 9 returns. The new glaze caused two complaints about scratches.Prompt:
Summarise the text below in two sentences for the shop owner.
- Use only the text. Do not add reasons, forecasts, seasons or comparisons with
other shops.
- If you calculate a number (a percentage, a difference), write "calculated" after it.
Text:
###
(paste the text here)
###Example reply (illustrative; yours will differ):
Mug sales rose from 250 to 320, a 28% increase (calculated), probably because of the
festive season. Returns were 9, a low rate compared with the industry, and two
customers reported scratches on the new glaze.Read it sentence by sentence and ask where each claim comes from. "28%" is correct (70 divided by 250) and was marked as calculated, so you can check it. "Probably because of the festive season" is a reason the text never gave. "Low compared with the industry" is a comparison with data you did not provide. Both are outside information. If you want such context, ask for it in a separate prompt, labelled as background, and verify it elsewhere. For a stricter check, ask the model to add the source sentence number after every sentence; a claim without a source number is a warning sign.
Ask for source quotes to support extracted facts
For any fact that will leave the chat (into a sheet, a report, an email), ask for a quote next to it. Take the call note again and add a column for evidence.
Prompt:
From the note below, extract: client_name, deadline, budget, address.
Output one line per field: field | value | exact quote from the note.
The quote must be copied exactly so I can search for it.
If the note does not say, write: field | NOT STATED | none
Note:
###
(paste the note here)
###Example reply (illustrative; yours will differ):
client_name | Hamid Rahimi | "Call with Hamid Rahimi"
deadline | Friday | "Wants quote by Friday"
budget | about 8k, unconfirmed | "budget is roughly 8k?"
address | 14 Cedar Lane | "Address: 14 Cedar Lane"Now search the note for each quote. The first, second and fourth are in the note. The third is not: the note says "Budget about 8k?", not "budget is roughly 8k?". The value is fine this time, but the quote was reworded, so you cannot trust the quote column blindly. The quote column makes this check fast. It does not make the model's output true; it makes false output visible.
Check whether every required field is present
Before you use extracted data, you often care less about the values than about gaps. Ask the model to audit presence, and to say unclear where a value exists but is not usable.
Prompt:
Required fields for a repair quote: client_name, phone, address (with city),
job, deadline (a calendar date).
Check the note below. For each required field write one line:
field | PRESENT, MISSING or UNCLEAR | a short reason
PRESENT means the note gives a usable value. UNCLEAR means something is there but
not enough to use. Do not fill in missing values.
Note:
###
(paste the note here)
###Example reply (illustrative; yours will differ):
client_name | PRESENT | Hamid Rahimi
phone | MISSING | no phone number in the note
address (with city) | UNCLEAR | street is given, city is not
job | PRESENT | roof leak
deadline (a calendar date) | UNCLEAR | "Friday" with no dateThis is the output you want: a to-do list for the follow-up call. Notice what makes it work. The required list is in your prompt (not in the model's imagination), each field has a clear rule for "usable", and the instruction forbids filling the gaps. You should still scan the note yourself for a phone number the model may have missed.
Compare extraction results against the original source
The last habit is a second pass. After an extraction, give the source and the result to the model (best in a new conversation, so it does not just defend its first answer) and ask it to check each value.
Prompt:
You are checking an extraction against its source. For each field in the
extraction, write: field | SUPPORTED, NOT SUPPORTED or CHANGED | exact quote from
the source or "none". CHANGED means the value differs from the source's wording
or certainty. Check only against the source. Do not correct the extraction.
Source:
###
Call with Hamid Rahimi re roof leak. Wants quote by Friday. Budget about 8k?
Address: 14 Cedar Lane. Said his neighbour had same problem. Will send photos.
###
Extraction:
###
client_name: Hamid Rahimi
job: roof leak
deadline: 2026-10-16
budget: 8000
phone: NOT STATED
###Example reply (illustrative; yours will differ):
client_name | SUPPORTED | "Hamid Rahimi"
job | SUPPORTED | "roof leak"
deadline | CHANGED | "Wants quote by Friday" (source gives no calendar date)
budget | CHANGED | "Budget about 8k?" (uncertainty and unit removed)
phone | SUPPORTED | none (the source has no phone number)This catches the two problems from the earlier extraction. A second pass is a good filter, not a guarantee: the checker is also a model and can approve a wrong value or flag a right one. Use it to focus your own attention. For totals, counts and dates you can still verify with a calculator or a calendar, and you decide what is used.
| What to compare | How |
|---|---|
| Each value | Find the quote in the source; is the wording and the certainty the same? |
| Each quote | Search for it character by character; paraphrased quotes are a warning. |
| Numbers and totals | Recalculate yourself. |
| Counts | Rows or items out equal rows or items in. |
| Empty fields | Search the source for the value before accepting "not stated". |
| Headers and formats | Exact column names, date format, allowed values. |
Exercise: a sample customer-feedback dataset
Use this invented dataset from Tide & Thread to practise everything on this page. Copy it into your assistant.
ID | Date | Comment
F01 | 2026-10-02 | Order arrived two days early. Packaging was great.
F02 | 2026-10-02 | The jacket zip broke after one week. I want a refund.
F03 | 2026-10-03 | Prices went up again, and the sale price is not really a sale.
F04 | 2026-10-04 | Your app crashes when I open the basket.
F05 | 2026-10-05 | Support told me three times that someone would call me back. Nobody did.
F06 | 2026-10-06 | Lovely dress, but the sleeves are too short and delivery took 10 days.
F07 | 2026-10-07 | Do you ship to Nairobi?
F08 | 2026-10-08 | Perfect, exactly as described. But the colour is nothing like the photo.
F09 | 2026-10-09 | ok
F10 | 2026-10-10 | Order #5521: the chat agent fixed my address in two minutes. Thank you!Use these categories: Delivery (speed, delays, tracking, packaging, damage in transit), Product quality (fabric, fit, colour, durability), Price (prices, shipping cost, discounts), Support (help from staff or chat), Website or app (crashes, login, checkout), Other and UNCLEAR. Sentiment labels: positive, neutral, negative, mixed. If a comment has two topics, choose the one the customer stresses most.
Where this shows up at work
- Support and quality teams: labelled comments with quotes let a manager audit a sample instead of trusting totals.
- Contracts, policies and price lists: comparing versions and listing contradictions before a signature or a launch.
- Operations and finance: turning notes, emails and invoices into rows, with a required-field check before anything is paid or booked.
- Building AI features: the verification pass becomes an automatic check in a pipeline, and "NOT STATED" and "UNCLEAR" become values the software knows how to handle.
Common mistakes
- Accepting evidence without searching for it. A paraphrased quote looks the same as a real one. The fix: search for it in the source, every time, at least for a sample.
- Letting the model resolve a contradiction. It picks one side and you never see the conflict. The fix: ask for both quotes and decide yourself.
- Trusting a complete-looking comparison or table. Rows can be missing and headers renamed. The fix: count items in and rows out, and check the exact header.
- Normalising too much. "Friday" becomes a date, "about 8k?" becomes 8000. The fix: say "copy the wording, keep uncertainty", and compare values with the source.
- Believing the verification pass is proof. A checker can be wrong too. The fix: use it to find where to look, and verify totals, dates and quotes yourself.
Try it yourself
- Easy. Classify F01 to F10 with the categories and sentiment labels above, and ask for an exact evidence quote of at most 8 words per row. Then search each quote in the dataset and mark it found or not found.
- Medium. Extract from F10 the order number and the issue, with a source quote for each. Then run the required-field check with these required fields: order number, customer name, product, issue. Say which are PRESENT, MISSING or UNCLEAR, and explain in one sentence why you would not ask the model to fill the missing ones.
- Hard. Put your ten-row classification in a table with the exact columns
ID | Category | Sentiment | Evidence. Open a new conversation, paste the dataset and your table, and run the verification pass (SUPPORTED, NOT SUPPORTED or CHANGED for each row). Compare it with your own judgement for F06 and F08, and count where the two passes disagree. Add one sentence to your classification prompt that would reduce the disagreement, and rerun. Revisit the boundary examples from Summarising and Extracting: Summaries, Key Facts and Evidence and say whether you need one more.
Answers
Easy. A reasonable key: F01 Delivery, positive. F02 Product quality, negative. F03 Price, negative. F04 Website or app, negative. F05 Support, negative. F06 Product quality or Delivery, mixed (the sleeves and the 10 days compete; either is acceptable if the stressed topic is stated and you applied the rule consistently). F07 Other, neutral. F08 Product quality, mixed (the same comment says "exactly as described" and "nothing like the photo": it contradicts itself). F09 UNCLEAR, neutral, evidence none. F10 Support, positive. Pass checklist: every row has one category and one sentiment from the lists; no invented categories; UNCLEAR for F09; at least the quotes for F02, F04 and F10 are found exactly in the dataset; any quote not found is flagged and the label rechecked.
Medium. F10 gives order number 5521 ("Order #5521") and the issue "the chat agent fixed my address" (the address was wrong, and it was fixed). Required fields: order number PRESENT (5521); customer name MISSING; product MISSING; issue PRESENT or UNCLEAR (the address problem is mentioned, but it was already solved). Reason for not filling the gaps: a filled value that is guessed looks the same as a real one and can reach a customer or a database. Pass checklist: each quote is exact; no invented name or product; missing items listed for follow-up.
Hard. Answers vary. Pass checklist: the table header is exactly ID | Category | Sentiment | Evidence with ten rows (count them); the verification was run in a new conversation with the dataset and the table together; the disagreement count is written down with the rows named; your added sentence is concrete, for example "When a comment has two topics, choose the topic in the first clause" or "Evidence must be copied from the comment"; you reran and compared before and after; you state clearly that the check helps but a person still decides.
Summary
- Ask for evidence: an exact quote with every label or fact. Then search for it, because a reworded quote means the answer needs a closer look.
- Ask for contradictions and differences explicitly, forbid the model to resolve or guess, and count items in and out so missing differences show up.
- Name table columns exactly, give an empty-cell value, keep the source's wording and uncertainty in fields, and check headers, row counts and cells you cannot see in the source.
- Close the source: "use only the text", mark calculated numbers, and treat reasons and comparisons you did not provide as outside information.
- Check required fields (PRESENT, MISSING, UNCLEAR) and run a verification pass against the source in a fresh conversation. It helps you focus; it does not replace your own check.
Next: Prompting in Your Own Language: Native Script, Romanised and Mixed Text shows how to write the same tasks in Bangla, Spanish, Hindi or any language you work in, and how to control the language of the answer.

