When you prompt in English, you align with how AI learned code and spend fewer tokens.When you prompt in English, you align with how AI learned code and spend fewer tokens.

AI Coding Tip 002 - Speak the Model’s Native Tongue

Speak the model’s native tongue.

Disclaimer: You might have noticed English is not my native language. This article targets people whose native language is different from English.

Common Mistake ❌

You write your prompt in your native language (other than English) for a technical task.

You ask for complex React hooks or SQL optimizations in Spanish, French, or Chinese.

You follow your train of thought in your native language.

You assume the AI processes these languages with the same technical depth as English.

You think modern AI handles all languages equally for technical tasks.

Problems Addressed 😔

The AI copilot misreads intent.

The AI mixes language and syntax.

The AI assistant generates weaker solutions.

Non-English languages use more tokens. You waste your context window.

The translation uses part of the available tokens in an intermediate prompt besides your instructions.

The AI might misinterpret technical terms that lack a direct translation.

For example: "Callback" becomes "Retrollamada" or "Rappel". The AI misunderstands your intent or wastes context tokens to disambiguate the instruction.

How to Do It 🛠️

  1. Define the problem clearly.
  2. Translate intent into simple English.
  3. Use short sentences.
  4. Keep business names in English to favor polymorphism.
  5. Never mix languages inside one prompt (e.g., "Haz una función que fetchUser()…").

Benefits 🎯

You get more accurate code.

You fit more instructions into the same message.

You reduce hallucinations.

Context 🧠

Most AI coding models are trained mostly on English data.

English accounts for over 90% of AI training sets.

Most libraries and docs use English.

Benchmarks show higher accuracy with English prompts.

While models are polyglots, their reasoning paths for code work best in English.

Prompt Reference 📝

Bad prompt 🚫

Mejorá este código y hacelo más limpio

Good prompt 👉

Refactor this code and make it cleaner

Considerations ⚠️

You should avoid slang.

You should avoid long prompts.

You should avoid mixed languages.

Models seem to understand mixed languages, but it is not the best practice.

Some English terms vary by region. "Lorry" vs "truck". Stick to American English for programming terms.

Type 📝

[X] Semi-Automatic

You can ask your model to warn you if you use a different language, but this is overkill.

Limitations ⚠️

You can use other languages for explanations.

You should prefer English for code generation. \n You must review the model reasoning anyway.

This tip applies to Large Language Models like GPT-4, Claude, or Gemini.

Smaller, local models might only understand English reliably.

Tags 🏷️

  • Standards

Level 🔋

[x] Beginner

Related Tips 🔗

  • Commit Before You Prompt
  • Review Diffs, Not Code

Conclusion 🏁

Think of English as the language of the machine and your native tongue as the language of the human.

When you use both correctly, you create better software.

More Information ℹ️

https://commoncrawl.org/?embedable=true

https://arxiv.org/abs/2402.16694?embedable=true

https://arxiv.org/abs/2408.09701?embedable=true

https://tao-hpu.medium.com/why-we-recommend-english-for-ai-coding-the-30-performance-advantage-no-ones-talking-about-1c4cba55c146?embedable=true

https://www.uwa.edu.au/news/article/2025/may/ai-systems-are-built-on-english-but-not-the-kind-most-of-the-world-speaks?embedable=true

https://pureai.com/blogs/mind-the-prompt/2025/12/prompting-in-english-not-that-ideal-after-all.aspx?embedable=true

https://help.openai.com/en/articles/4936856-what-are-tokens-and-how-to-count-them?embedable=true

https://hackernoon.com/how-to-find-the-stinky-parts-of-your-code-part-xxvi?embedable=true

Also Known As 🎭

English-First Prompting

Language-Aligned Prompting

Disclaimer 📢

The views expressed here are my own.

I welcome constructive criticism and dialogue.

These insights are shaped by 30 years in the software industry, 25 years of teaching, and authoring over 500 articles and a book.


This article is part of the AI Coding Tip series.

\

Market Opportunity
Sleepless AI Logo
Sleepless AI Price(AI)
$0.03991
$0.03991$0.03991
+0.83%
USD
Sleepless AI (AI) Live Price Chart
Disclaimer: The articles reposted on this site are sourced from public platforms and are provided for informational purposes only. They do not necessarily reflect the views of MEXC. All rights remain with the original authors. If you believe any content infringes on third-party rights, please contact service@support.mexc.com for removal. MEXC makes no guarantees regarding the accuracy, completeness, or timeliness of the content and is not responsible for any actions taken based on the information provided. The content does not constitute financial, legal, or other professional advice, nor should it be considered a recommendation or endorsement by MEXC.

You May Also Like

Washington Faces New Dilemma Over Venezuela’s Alleged BTC Reserves

Washington Faces New Dilemma Over Venezuela’s Alleged BTC Reserves

The issue surfaced after the dramatic removal of Venezuela’s longtime leader, Nicolás Maduro, who was captured by U.S. forces and […] The post Washington Faces
Share
Coindoo2026/01/13 10:14
Jose Mourinho Is Back. Can He Be The Special One Again?

Jose Mourinho Is Back. Can He Be The Special One Again?

The post Jose Mourinho Is Back. Can He Be The Special One Again? appeared on BitcoinEthereumNews.com. Portuguese coach Jose Mourinho (L) holds up a Benfica jersey with his name together with Benfica president Rui Costa during his official presentation as new Benfica coach at the Benfica Campus training center in Seixal, on the outskirts of Lisbon, on September 18, 2025. Benfica sacked Portuguese coach Bruno Lage following their defeat to Qarabag on September 16, 2025 evening in the Champions League, and contacted Jose Mourinho the next day to hire him. (Photo by PATRICIA DE MELO MOREIRA / AFP) (Photo by PATRICIA DE MELO MOREIRA/AFP via Getty Images) AFP via Getty Images Two decades after leaving Portugal with a Champions League winner medal in his pocket, Jose Mourinho is back in his home country. Benfica, Portugal’s most successful club, appointed the 62-year-old as their new manager on Thursday, just three weeks after he was fired by Turkish giants Fenerbahce after just over a year in charge. It marks an emotional return for Mourinho, who began his coaching career with the Lisbon giants in 2000, managing 11 matches before resigning. By the time he left Portugal for England just under four years later, his star was in the ascendency. As he introduced himself to the English media for the first time, Mourinho famously described himself as the “Special One”. It was a revealing remark, typical of a man whose confidence bordered on arrogance at times. Crucially, it was also borne out by results. In two seasons at Porto, Mourinho won two league titles, the UEFA Cup and the Champions League. Seven league titles across England, Italy and Spain with Chelsea, Inter Milan and Real Madrid followed, along with another Champions League crown and seven domestic cups across three countries. The Europa League and the Europa Conference League have also been added to Mourinho’s trophy cabinet, the former with…
Share
BitcoinEthereumNews2025/09/19 22:49
'Groundbreaking': Barry Silbert Reacts to Approval of ETF with XRP Exposure

'Groundbreaking': Barry Silbert Reacts to Approval of ETF with XRP Exposure

Grayscale is launching a "combo" multi-token ETF that offers exposure to Bitcoin (BTC), Ethereum (ETH), XRP, and other tokens
Share
Coinstats2025/09/18 13:04