{"id":"data2-csv-standardize-vendor-names","audience":"operations","category":"data","track":"data","technique":"examples","level":"intermediate","title":"Standardize vendor names into a clean CSV block","free":false,"task":"Your vendor list has the same suppliers spelled several ways and you need standard names. Write one CSV block (one code block) with the header original,standard and one row per name in the same order, at most 12 words outside it. Standard form: Title Case, no punctuation, and no legal ending such as Inc, LLC, Ltd or Co. Acme Tool and Acme Tools are different vendors and must stay different.","materialLabel":"Vendor names as typed (attached to your prompt automatically)","material":"Vendor names from the AP system export (Fairmont Builders) - 9 names, row order matters\n\n1. ACME TOOLS, INC.\n2. acme tools inc\n3. Acme Tool Co.\n4. Brightline Supply LLC\n5. brightline supply, llc\n6. Cascade Paper Ltd.\n7. cascade paper\n8. Delta-Freight Services\n9. DELTA FREIGHT SERVICES, INC\n\nContext:\n- Hyphens count as punctuation in these names.\n- AP wants one standard name per vendor so payments stop going to duplicates.\n- \"Acme Tools\" supplies hand tools; \"Acme Tool\" is a separate company that sells welding gear.\n- Nothing here has been paid to a vendor named in the second column yet; this is just cleanup.","rules":[{"type":"codeBlocks","count":1},{"type":"maxProseWords","max":12}],"mistakes":[{"title":"Merging the Acme vendors","why":"The AI collapses Acme Tool into Acme Tools because they look the same.","fix":"Add: \"Keep Acme Tools and Acme Tool as two different vendors.\"","checks":["r0"]},{"title":"Leaving suffixes and hyphens","why":"The AI keeps Inc, LLC or the hyphen in Delta-Freight.","fix":"Add: \"Remove punctuation, hyphens and endings like Inc, LLC, Ltd, Co.\"","checks":["r1"]},{"title":"Changing row order","why":"The AI groups duplicates together or sorts alphabetically.","fix":"Add: \"9 rows in the same order, original copied exactly.\"","checks":["r2"]},{"title":"Leaving the format to chance","why":"The AI picks its own length and layout unless told the exact shape.","fix":"Add: \"Put the code in exactly 1 code block. Keep the writing outside the code under 12 words.\"","checks":["codeBlocks","maxProseWords"]}],"promptHints":[{"label":"Asks for the header","patterns":["original,standard","header"]},{"label":"Gives the standard form","patterns":["title case","punctuation","inc, llc"]},{"label":"Keeps Acme separate","patterns":["acme tool","different vendors?","separate"]},{"label":"Keeps the order","patterns":["same order","9 rows"]},{"label":"Gives an example","patterns":["example","->","like"]}],"hint":"Cleaning needs a rule and one example, plus the exception that must not be merged.","mission":"Standardize these vendor names.","musts":["One CSV block","Strip endings and punctuation","Keep Acme Tool separate"],"rubricLabels":["Rows 1 and 2 both become Acme Tools, and row 3 becomes Acme Tool (kept different from Acme Tools)","Rows 4 and 5 become Brightline Supply, rows 6 and 7 become Cascade Paper, and rows 8 and 9 become Delta Freight Services (hyphen removed)","The code block is CSV with the header original,standard and 9 data rows in the original order, the original names unchanged, and no suffix such as Inc, LLC, Ltd or Co in the standard column"]}