{"id":"data2-survey-comment-theme-counts-table","audience":"marketing","category":"data","track":"data","technique":"examples","level":"beginner","title":"Count survey comment themes in a sorted table","free":false,"task":"Your marketing manager wants to know what customers talk about most. Make one markdown table with columns Theme, Comments and % of 12, from the tagged comments, sorted from most to fewest comments, plus nothing before or after the table. Count each comment once, under its first tag only, and round percents to one decimal. Plain text apart from the table, under 60 words.","materialLabel":"Tagged survey comments (attached to your prompt automatically)","material":"Customer survey comments - Fernhill Foods (12 comments, tagged by the support team)\n\n1. \"Too expensive for the portion size.\" [price]\n2. \"Package arrived four days late.\" [shipping]\n3. \"Good value but the cost keeps rising.\" [price][quality]\n4. \"The tea tasted stale.\" [quality]\n5. \"Cheaper than the shop near me.\" [price]\n6. \"Shipping was slow and the box cost extra.\" [shipping][price]\n7. \"Please add a gift card option.\" [other]\n8. \"Prices went up again in June.\" [price]\n9. \"Delivery tracking never updated.\" [shipping]\n10. \"Subscription is pricey for what you get.\" [price]\n11. \"My order shipped to the wrong state.\" [shipping]\n12. \"Loose leaf was mixed with dust, and shipping took ages.\" [quality][shipping]\n\nNotes:\n- Tags: price, shipping, quality, other.\n- A comment with two tags counts only for the first tag shown.\n- 12 comments in total.","rules":[{"type":"plainText"},{"type":"maxWords","max":60}],"mistakes":[{"title":"Double counting comments","why":"The AI counts a comment under both tags, so totals exceed 12.","fix":"Add: \"Count each comment once, under its first tag only.\"","checks":["r0"]},{"title":"No percent column","why":"The AI gives counts without % of 12.","fix":"Add: \"% = comments / 12 x 100, one decimal.\"","checks":["r1"]},{"title":"Adding commentary","why":"The AI adds quotes and recommendations.","fix":"Add: \"Output only the table.\"","checks":["r2"]},{"title":"Leaving the format to chance","why":"The AI picks its own length and layout unless told the exact shape.","fix":"Add: \"Plain text, no bold or headings.\"","checks":["plainText"]},{"title":"Trusting the AI to count words","why":"AI is bad at counting. Ask for a total word limit and it often lands over it.","fix":"Cap each part instead, for example \"each line under 15 words.\"","checks":["maxWords"]}],"promptHints":[{"label":"Names the columns","patterns":["theme ?\\||% of 12"]},{"label":"States the first-tag rule","patterns":["first tag","once"]},{"label":"Asks for sorting","patterns":["sorted","most to fewest"]},{"label":"Gives the percent rule","patterns":["/ ?12","one decimal"]},{"label":"Cuts extras","patterns":["only the table","no intro"]}],"hint":"Counting tagged comments is easy to botch with double tags. State the first-tag rule.","mission":"What themes appear most in these comments?","musts":["Counts sorted","First-tag rule","Only the table"],"rubricLabels":["The table rows are Price 5 (41.7%), Shipping 4 (33.3%), Quality 2 (16.7%) and Other 1 (8.3%), sorted most to fewest","Comments with two tags are counted once under the first tag only (comment 6 under shipping, comment 12 under quality, comment 3 under price)","The output is a single markdown table with columns Theme, Comments and % of 12, with no text before or after it"]}