Launch offer: the first 1,000 users get Settl free for a year* Claim your spot
settlbuilding in public

The global voice-input test pack (languages, currencies, accents)

The short version

Voice input understood a foreign currency correctly and then the app overwrote it with the local one, so a hotel in yen was recorded in dollars. Separately, anyone switching between two languages mid-sentence broke the parsing entirely.

Both failures come from the same assumption: that the user speaks one language, clearly, and means the currency you expect. Detect the language rather than assuming it, and when the understanding layer has already identified a currency, do not second-guess it.

Copy these prompts

Paste them into Claude Code (or any AI that can see your project), in this order. Each one answers a different question, and the first is usually the one that matters.

1. Detect the language instead of assuming it

My app takes spoken input. Show me where it assumes which language the person is speaking, and how to detect it from the audio instead. Tell me what it currently does with a language it was not expecting.

2. Stop the app overruling what understood them

Find every place my app changes or relabels something the understanding layer already worked out, such as swapping a currency to the one matching the device region. Show me how to trust the original interpretation instead.

3. Test with sentences that switch mid-way

Write me test cases using sentences that switch between two languages halfway through, and sentences using currencies other than my own. Tell me which of them my app currently gets wrong.

"Char sau rupaye" broke my app. So did Japanese yen. Real bugs from real usage: Hinglish (Hindi-English code-switching) crashed my parsing, and "12000 yen for hotel" got logged as USD, because my client second-guessed the model's currency and relabeled it. The fixes: auto language detection on speech-to-text, locale hints in the prompt, and a rule I now hold sacred: trust the agent's currency; stop relabeling.

The two bug classes

Class 1 (language): your STT and parser assume English; your users speak Hinglish, Singlish, Spanglish. Code-switched speech is how billions of people talk about money, not some edge case ("char sau rupaye" = four hundred rupees).

Class 2 (second-guessing): the model correctly extracts currency: JPY, then a "helpful" client-side default overwrites it with the user's home currency. The smartest component in your pipeline got overruled by the dumbest.

The test pack

  1. Code-switched utterances. "Char sau rupaye for the taxi" · "dinner was achtzig euro" · mixed-script inputs. Your pipeline must either parse them or fail visibly. Never crash.
  2. Explicit foreign currency, spoken. "12000 yen for hotel" · "80 baht" · "fifty quid." Assert the STORED currency equals the SPOKEN currency, end to end: not just the model output, the database row. That's the assertion that would have caught my relabeling bug.
  3. Currency words vs symbols vs codes. "yen" / "¥" / "JPY" / "yenes": all one currency. Build the vocabulary into the prompt (mine has a non-English currency vocab table with examples).
  4. Zero-decimal currencies. ¥12,000 is not ¥12,000.00, and dividing it by 3 must not invent sen. Formatting AND arithmetic tests for JPY/KRW-class currencies.
  5. Number words in multiple languages. "char sau" (400), "quatre-vingts" (80), "lakh" (100,000). Your test suite needs to be as multilingual as your users.
  6. Accent/pronunciation variants on your core phrases through the real STT path, not typed transcripts. The transcription errors are half the distribution your parser sees.

The fix pattern

Steal this for your app

Run this on your codebase

Paste this into Claude Code in your repo:

Audit this repo for language and currency traps in the input pipeline.
Find the speech-to-text or NLU config and flag any hardcoded locale like en-US instead of auto-detect.
Find every client-side default or fallback that can overwrite a model-extracted field, especially currency, and flag defaults that fill non-absent fields.
Check currency code paths for zero-decimal currencies (JPY, KRW): formatting and division must not invent decimals.
Search the test suite for code-switched or non-English inputs and for foreign-currency assertions that check the stored row, not just model output.
Flag any extraction prompt that lacks a currency vocabulary covering words, symbols, and codes.
Report findings as a checklist before changing anything.

Get the next one in your inbox