Restructure a press release in inverted-pyramid order
Rewrite a press release that opens with company history so the news comes first, then script-check the lead, the quote and where the "why" lands.
A draft that runs history, then greeting, then the event came back in reporter order: the first sentence carried who, when, where and what. The CEO's quote was copied exactly and no promotional wording appeared. What was missing from the top was the "why": the reason for the donation sat in the third paragraph.
[1] Put the draft in a file. It is a made-up mold-parts maker donating books and laptops to a local library. The news is at the bottom and the history is at the top.
Example Precision is a maker of metal mold parts that started in a small factory in Gyeonggi Province in 2004. A year after its founding it signed its first export contract, and it has since expanded the factory twice. Today 48 employees make parts for cars and home appliances. The company earned a quality management certification in 2019, and last year its annual sales passed 20 billion KRW for the first time. Example Precision has grown since its founding thanks to the steady love and support of local residents. We will keep doing our best to be a company that grows together with the community. With this in mind, Example Precision held a book donation ceremony at 2 p.m. on Saturday, October 17, in the second-floor hall of Blue Village Library. At the ceremony the company handed over 1,200 books, 700 children's titles and 500 young-adult titles, together with 10 laptops for library users. The CEO, 5 employee representatives, the library director and about 30 local residents attended. The books were chosen through an employee survey and will be on the shelves from the first week of November. Last year the library had more than 40,000 visitors, but many of its children's books had been in use for over 10 years and needed replacing. At the ceremony the CEO said, "We believe the children who read books will grow up and look after this neighborhood. It is not a large amount, but we wanted the children who come to the library to be able to open a new book." Example Precision plans to continue book donations in the same way next year.[2] The prompt. It says who reads the result and how (a reporter decides from the first paragraph), then lists what to do. Rules are phrased as things to do, "use dates and quantities instead of adjectives", following Anthropic's guidance on controlling response format.
Rewrite the press release draft below, to be sent to a local newspaper reporter, in a new order. A reporter decides from the first paragraph whether to write the story, so put the most important news first and the less important material after it (inverted pyramid).- Put a one-line headline at the top.- Put who, when, where and what in the first sentence.- Then give quantities, attendees and background, and put the company introduction (history) last and short. The story must still stand if the last paragraph is cut off.- Use only facts that are in the draft. Use dates and quantities instead of adjectives.- Copy the CEO's quote from the draft exactly, character for character. Do not create any new quote. <draft>{contents of draft.en.txt}</draft> Output only the rewritten press release.[3] The first result.
**Example Precision Donates 1,200 Books and 10 Laptops to Blue Village Library** Example Precision, a maker of metal mold parts, donated 1,200 books and 10 laptops to Blue Village Library at a ceremony at 2 p.m. on Saturday, October 17, in the library's second-floor hall. The books are 700 children's titles and 500 young-adult titles. The laptops are for library users. The CEO, 5 employee representatives, the library director and about 30 local residents attended. The books were chosen through an employee survey and will be on the shelves from the first week of November. The library had more than 40,000 visitors last year. Many of its children's books had been in use for over 10 years and needed replacing. At the ceremony the CEO said, "We believe the children who read books will grow up … to be able to open a new book." Example Precision said it has grown with the support of local residents and wants to keep growing together with the community. It plans to continue book donations in the same way next year. Example Precision started in a small factory in Gyeonggi Province in 2004 and signed its first export contract a year later. …[4] Four things are counted by a script: how many of who/when/where/what/how/why appear in the first sentence; the first paragraph by which all six have appeared (cut the text after it and the facts survive); whether the quotes are identical to the draft (same count, whitespace differences ignored); and promotional words and dropped facts.
#!/usr/bin/env python3"""usage: check.py ko|en draft.txt result1.txt [result2.txt ...]lead sentence coverage of who/when/where/what/how/why, paragraph where all six are first covered,quotes identical to the draft (whitespace-normalized, same count), promo words, dropped draft facts"""import re, syslang, draft, *res = sys.argv[1:]rd = lambda p: open(p, encoding="utf-8").read()W = { "ko": {"who": "예시정밀", "when": "10월 17일", "where": "푸른마을도서관", "what": "1,200권", "how": "전달식", "why": "교체가 필요"}, "en": {"who": "Example Precision", "when": "October 17", "where": "Blue Village Library", "what": "1,200 books", "how": "ceremony|handed over", "why": "needed replacing"},}[lang]PROMO = {"ko": "혁신|업계 최초|최고|선도|획기적|독보적|국내 유일", "en": "innovative|industry-first|leading|groundbreaking|best-in-class|unique"}[lang]FACTS = {"ko": ["2004", "첫 수출", "두 차례", "48명", "2019", "200억", "사랑과 응원", "10년 넘게"], "en": ["2004", "first export", "twice", "48 employees", "2019", "20 billion", "love and support", "over 10 years"]}[lang]norm = lambda t: re.sub(r"\s+", " ", t)src = rd(draft)dq = re.findall(r'"([^"]+)"', src) # quotes in the draftfor p in res: t = rd(p).strip() paras = [x.strip() for x in t.split("\n\n") if x.strip() and not x.strip().startswith("**")] lead = re.split(r"(?<=[.다])\s+(?=[A-Z가-힣])", paras[0])[0] inlead = [k for k, v in W.items() if re.search(v, lead)] cover, first_all = set(), None for i, para in enumerate(paras, 1): cover |= {k for k, v in W.items() if re.search(v, para)} if len(cover) == len(W) and first_all is None: first_all = i quotes = re.findall(r'"([^"]+)"', t) qok = len(quotes) == len(dq) > 0 and all(norm(a) == norm(b) for a, b in zip(dq, quotes)) promo = re.findall(PROMO, t, flags=re.I) dropped = [f for f in FACTS if f in src and f not in t] print(f"{p}: paras={len(paras)} lead has {len(inlead)}/6 {inlead} | all six by paragraph {first_all} | quotes={len(quotes)}/{len(dq)} exact={qok} | promo={promo} | dropped={dropped}")$ python3 -X utf8 -I check.py en draft.en.txt out.en.1.txt out.en.2.txtout.en.1.txt: paras=6 lead has 5/6 ['who', 'when', 'where', 'what', 'how'] | all six by paragraph 3 | quotes=1/1 exact=True | promo=[] | dropped=['love and support']out.en.2.txt: paras=6 lead has 5/6 ['who', 'when', 'where', 'what', 'how'] | all six by paragraph 3 | quotes=1/1 exact=True | promo=[] | dropped=['love and support']A quick test that the quote check catches cuts: the first file below is result 1 with the second sentence of the quote deleted, the second has the quote removed (hand-edited files, not model output).
$ python3 -X utf8 -I check.py en draft.en.txt test.cut.en.txt test.noquote.en.txt | grep -o 'quotes=[^|]*'quotes=1/1 exact=False quotes=0/1 exact=False The lead has everything except the "why", and the quote matches the draft word for word. The flag is "all six by paragraph 3": the reason appears in paragraph 3 in both runs. If a newspaper keeps only the first two paragraphs, readers get the donation without its cause. (dropped shows the greeting's "love and support" was removed in both runs, which is a normal edit.)
[5] Add a rule that places the reason, in front of "Use only facts that are in the draft."
- Give the reason the donation was needed (the library's situation) within the second paragraph.$ python3 -X utf8 -I check.py en draft.en.txt out.reason.en.1.txt out.reason.en.2.txtout.reason.en.1.txt: paras=5 lead has 5/6 ['who', 'when', 'where', 'what', 'how'] | all six by paragraph 2 | quotes=1/1 exact=True | promo=[] | dropped=['first export', 'twice', '2019', 'love and support']out.reason.en.2.txt: paras=6 lead has 5/6 ['who', 'when', 'where', 'what', 'how'] | all six by paragraph 2 | quotes=1/1 exact=True | promo=[] | dropped=['first export', 'twice', '2019']Both runs now complete the six by paragraph 2. Two things came with it. The first result began that paragraph with "The donation was needed because the library had more than 40,000 visitors last year, while …", which links the visitor count to the need in a way the draft does not state. The history also shrank: "first export", "twice" and "2019" were dropped from both. If you want any of that kept, say so in the prompt, for example "keep the founding year, headcount and export history in the history paragraph".
Before sending, check by hand that the CEO has approved the quote, that the figures (1,200 books, 10 laptops, about 30 people) match the event record, and that no puffery slipped in that the script's word list does not contain. The script only catches words you list.