Humanize Groq API Output in Ruby: A Stdlib-Only Checker for Em Dashes, Question Leads and Exclamations + 5 Free Tools (2026)
Last verified October 2026. Heads-up: my team makes UnAIMyText, which sits third in the list below. The Ruby is yours to copy. I help run the tech side of a small community platform built on Rails. Every Friday it emails each neighborhood group a digest: new events, open volunteer slots, lost-and-found. Last spring we started drafting those digests with an LLM on Groq, mostly because the replies…
A Ruby script was created to humanize Groq API output for community-style emails. The script checks for three issues: em dash overuse, question led paragraphs, and exclamation stacking. When those issues appear, the script fails the draft and suggests a rewrite. The script is written in Ruby 3.1 or newer, with no additional gems required. It uses the standard library, Groq's API, and sends a prompt to Groq to generate the email content.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.