I run a small AI song generator. People describe a song, or paste their own lyrics plus a style line ("acoustic guitar, warm female vocals"), and a third-party music generation API turns that into a track. Most of my users don't write in English: the biggest groups are Ukrainian, Slovak, Polish and Czech, and the site runs in 24 languages.
The API has one rule that shows up in my error logs again and again: no artist names. You can ask for "80s synth pop", not for a song "like" a named band. Fair enough. The trouble is what the filter thinks an artist name is.
Last week a quality check flagged six paid generations in four days that had failed with an artist-name refusal. Five of them were the same word: rytmus. In Slovak and Czech that just means rhythm. One user wrote "acoustic guitar, rytmus", got refused three times in a row, then changed it to "rhythm" and got the song. Another wrote "a slower rhythm, strong bass, r&b" in Slovak, was refused twice, and never generated again.
So I went back through every refusal in the database.
The numbers
From May 2024 to mid-November 2026 the site sent about 4,500 generations. 145 came back refused for an artist name.
| Period | Generations | Refused for artist name |
|---|---|---|
| May–Sep 2024 | 3,644 | 138 (3.8 %) |
| Oct 2024–Nov 2025 | 259 | 0 |
| Dec 2025–Nov 2026 | 637 | 7 (1.1 %) |
The quiet middle period had little traffic, so I won't read much into the zero. The 2024 refusals were mostly on the free-text song description (112), the rest on the style tags (26). All 7 recent ones were on the style tags.
Then I read the 145 names the filter reported, and sorted them by hand.
- Real artists, asked for on purpose: the majority. Pop stars, classic rock bands, rappers, a few metal bands. The filter was right, and the user needed a better hint (more on that below).
- Ordinary words: 49 of 145, by my reading. About a third.
- First names of the person the song was for: at least 4. On a site where people make birthday and anniversary songs, that one hurts.
The ordinary words
These are words that the filter reported as an artist name, with what they mean in the language the user wrote in:
| Reported "artist" | Language | Meaning | Times |
|---|---|---|---|
| melodico | Italian | melodic | 9 |
| latino | Spanish | Latin (as in Latin pop) | 6 |
| rytmus | Slovak / Czech | rhythm | 5 |
| pesado | Portuguese | heavy | 3 |
| wiatr | Polish | wind | 2 |
| epica | Portuguese (épica) | epic | 2 |
| sin miedo | Spanish | without fear | 2 |
| bebe | Portuguese (bebê) | baby | 2 |
| salvador | Portuguese | saviour (in a hymn) | 2 |
| gato | Portuguese | cat | 1 |
| letto | Italian | bed | 1 |
| catedral | Portuguese | cathedral | 1 |
| havasi | Turkish (havası) | tune, air | 1 |
| devochka | Russian (девочка) | little girl | 1 |
| nhac thieu nhi | Vietnamese (nhạc thiếu nhi) | children's music | 1 |
| tage | German | days | 1 |
| trunks | English | an elephant's trunks, in a zoo song | 1 |
Plus a handful of single cases like roadtrip, menor (minor), rico (rich), libera (sets free), vedo (I see), levante (rise).
Most of these are genre and mood words, which is exactly what the API asks you to write instead of artist names. "Pop rock melodico italiano" is a textbook style description. It was refused nine times.
The filter folds the text before it matches
Look at the right-hand spelling in the table. The user wrote épica, bebê, Havası, девочка, Nhạc thiếu nhi. The refusal reported epica, bebe, havasi, devochka, nhac thieu nhi.
So the filter strips accents (Vietnamese tone marks included) and transliterates Cyrillic into plain Latin letters, and only then compares against its list of names. That is why it catches so much outside English: once every word is folded to ASCII, a lot of common words in other languages land on a band or a stage name somewhere. A Russian rap prompt that mentioned a well-known American rapper in the genitive case came back as rossa: folded and transliterated, inflection included.
Two practical consequences for anyone sending user text to a filtered API:
- If you keep a list of known false positives, match it on folded text too, or you'll miss the accented forms users really type.
- Your users can't predict this. "Write genres and moods, not artist names" is good advice that still fails for an Italian writing melodico.
What I changed
Three small things, in order of how often they help.
1. Replace known false positives before submitting. A short, explicit list, only words that have actually been refused. It is applied to the style line in the generate route:
const FALSE_ARTIST_WORDS: Record<string, string> = { rytmus: "rhythm", // sk/cs; 5 refusals in Nov 2026 }; const escapeRe = (s: string) => s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); // \b doesn't know č or š, so use Unicode letter boundaries const wordRe = (word: string) => new RegExp(`(?<![\\p{L}\\p{N}])${escapeRe(word)}(?![\\p{L}\\p{N}])`, "giu"); export function replaceFalseArtistWords(style: string): string { let out = style; for (const [word, repl] of Object.entries(FALSE_ARTIST_WORDS)) { out = out.replace(wordRe(word), repl); } return out; } The \b detail matters. In JavaScript, \b only understands ASCII word characters, so it sees a word boundary between č and the next letter, and \brytmus\b can match the tail of a longer word. The lookarounds with \p{L} (any letter, needs the u flag) fix that.
The list starts with one word on purpose. Replacing a word changes what the user asked for, so each entry has to be a confirmed refusal with an obvious English equivalent. melodico → melodic and pesado → heavy are the next candidates from the table above.
2. Retry once without the name. The refusal arrives in the provider's async callback. The generate route now keeps the submitted parameters on the job row, so the callback can strip the reported word from the style line and resubmit:
const artist = artistFromRefusal(refusal.msg); // "rytmus", "bon jovi", ... const style = stripArtist(req.style, artist); // also tidies leftover commas and slashes if (!style || style === req.style || retries.length >= 2) return false; // fall back to fail + refund // resubmit with the same params and the new style; the song stays "processing" Rules I set: only for the style field in custom mode, at most two retries per song (one prompt named two bands), never when stripping leaves the style empty, and the user is not charged again. If the retry can't run, the old path applies: the song fails and the credit goes back.
I deliberately do not retry refusals on the free-text description. Removing a word from "a song for my wife ___ for our anniversary" can remove the one word the song is about.
An honest gap: going through the old rows for this post showed the provider has changed the wording of this error at least twice. In 2024 it was moderation_failure; Tags contained artist name: X or Song Description contained artist name: X. Since December 2025 it is Your tags contain artist name X - we don't reference specific artists. My parser only knows the current one. If the wording changes again, the retry silently stops working and everything falls back to fail-and-refund. Accepting all three formats, plus an alert when a refusal arrives that the parser can't read, is the next change. The retry has also not fired in production yet, so I can't report its success rate.
3. Tell the user what happened, in their language. Before, a refused song just showed up as failed, at best with the provider's raw English message. Now the owner sees, on the song page and in their song list, a sentence like:
The music AI doesn't accept artist names in "Music Style Tag" ("rytmus"). Describe the sound with genres and moods instead, e.g. "pop rock, warm male vocals".
It uses the same label as the form field in each of the 24 languages, so people know which box to edit. For the real artist requests, which are the majority, this is the fix that matters. Most of those users weren't trying to copy anyone; they used a famous name as shorthand for a sound, because that's how people describe music to each other.
What I'd tell someone building on a filtered generation API
- Log the refusal reason with the request. I could only do this analysis because the full response was stored next to each job. Without it, 145 refusals would have been 145 anonymous failures.
- Group refusals by language. Moderation tuned on English text behaves differently once it folds everything to ASCII. Look at the words, not just the count.
- Parse provider error messages defensively. Match more than one wording, and alert when nothing matches, because a silent parser failure looks exactly like "no refusals".
- Treat the error text as product copy. The person who hit the filter needs to know which field to change and what to write instead.
The site, if you want to see the form these style lines go into: AISong.Fun.



