Urgent.News

600+ sources. One page. See who else covered it.

Editions

AI

I Almost Used AI to Classify User Input. Simple Rules Worked Better

I’ve been rebuilding a small name tattoo tool recently, and I ran into a problem that looked like a good use case for AI. The user enters some text. At first, I treated every input basically the same: text → show a set of lettering styles That works for simple names. But these are all very different inputs: Emma A.M. Jack + Mia Amelia · 1998-11-14 Anna-Marie Forever Dad Showing the exact same…

The author recently rebuilt a small name tattoo tool and encountered a problem that seemed like a good use case for AI. They initially treated every input the same, but realized the inputs were different and needed a more tailored approach. At first, they considered using an LLM to classify the input, but after listing the cases they cared about, they realized the classification problem was small and predictable.

Instead of adding another model call, they used deterministic rules to classify the input. The rules distinguished between factors such as initials, initials + date, name + date, two names, hyphenated names, multi-word text, short single names, medium single names, and long single names. By using deterministic rules, the classification only impacted the UI, helping to choose the first few lettering options that made more sense for the input.

This approach proved to be a good decision, as the AI classifier was not necessary for this specific problem. The author now asks themselves if there's enough uncertainty in the input space to justify using AI, rather than asking if AI could handle the task. In the end, they prefer deterministic rules when the problem is not fuzzy enough to require AI, as they offer predictability, simplicity, and ease of reproduction.

The main takeaway is that for certain problems like classifying user input, rules can be a better product decision, while AI is more valuable when tackling genuinely open-ended tasks.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in AI

Open Discovery Challenge: How to Build a Verifiable Judge for AI-Designed Malaria Drugs

Open Discovery Challenge: How to Build a Verifiable Judge for AI-Designed Malaria Drugs Generative models can propose thousands of plausible molecules in a day.

  • Open Discovery Challenge aims to create a verifiable judge for AI-designed malaria drugs
  • Successful drug must inhibit PfDHODH enzyme without affecting human counterpart
  • Scoring system validation revealed toxicity gate errors, size bias, and novelty scoring issues