{"slug": "when-the-model-answers-in-the-language-of-the-pasted-text", "title": "When the model answers in the language of the pasted text", "summary": "A developer measured Claude Sonnet's language-selection behavior on 24 mixed-language prompts where a short request in one language is paired with a longer pasted document in another, finding the model answered in the wrong language three times when no instruction specified which language should govern. Adding a short explicit rule about whose language counts eliminated the errors entirely, and the writeup offers a check to catch the failure.", "body_md": "A short request in one language, pasted material in another: Claude sometimes answers in the wrong one. What we measured, and a check that catches it.\n\nMostly because the pasted text outweighs the request. When someone writes one short line in Bulgarian and pastes a long English build log under it, the model reads far more English than Bulgarian, and when it sums up the paste, the summary often comes out in whatever language the paste was written in. A neighbouring language makes it worse: German next to Dutch, Portuguese next to Spanish, Russian next to Bulgarian. Across 24 such requests, Claude Sonnet answered in the wrong language three times when nobody told it whose language counts, and not once after a short rule said so.\n\n**Read the full report on AISkills402:** [https://aiskills402.com/blog/llm-replies-in-wrong-language](https://aiskills402.com/blog/llm-replies-in-wrong-language)", "url": "https://wpnews.pro/news/when-the-model-answers-in-the-language-of-the-pasted-text", "canonical_source": "https://dev.to/georgi_kalchev_85d01f7368/when-the-model-answers-in-the-language-of-the-pasted-text-p95", "published_at": "2026-10-09 07:10:35+00:00", "updated_at": "2026-10-09 07:21:36.030313+00:00", "lang": "en", "topics": ["large-language-models", "natural-language-processing", "ai-tools"], "entities": ["Claude Sonnet", "Anthropic", "AISkills402"], "also_reported_by": [], "alternates": {"html": "https://wpnews.pro/news/when-the-model-answers-in-the-language-of-the-pasted-text", "markdown": "https://wpnews.pro/news/when-the-model-answers-in-the-language-of-the-pasted-text.md", "text": "https://wpnews.pro/news/when-the-model-answers-in-the-language-of-the-pasted-text.txt", "jsonld": "https://wpnews.pro/news/when-the-model-answers-in-the-language-of-the-pasted-text.jsonld"}}