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.03959
$0.03959$0.03959
+0.02%
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 [email protected] 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

BlackRock boosts AI and US equity exposure in $185 billion models

BlackRock boosts AI and US equity exposure in $185 billion models

The post BlackRock boosts AI and US equity exposure in $185 billion models appeared on BitcoinEthereumNews.com. BlackRock is steering $185 billion worth of model portfolios deeper into US stocks and artificial intelligence. The decision came this week as the asset manager adjusted its entire model suite, increasing its equity allocation and dumping exposure to international developed markets. The firm now sits 2% overweight on stocks, after money moved between several of its biggest exchange-traded funds. This wasn’t a slow shuffle. Billions flowed across multiple ETFs on Tuesday as BlackRock executed the realignment. The iShares S&P 100 ETF (OEF) alone brought in $3.4 billion, the largest single-day haul in its history. The iShares Core S&P 500 ETF (IVV) collected $2.3 billion, while the iShares US Equity Factor Rotation Active ETF (DYNF) added nearly $2 billion. The rebalancing triggered swift inflows and outflows that realigned investor exposure on the back of performance data and macroeconomic outlooks. BlackRock raises equities on strong US earnings The model updates come as BlackRock backs the rally in American stocks, fueled by strong earnings and optimism around rate cuts. In an investment letter obtained by Bloomberg, the firm said US companies have delivered 11% earnings growth since the third quarter of 2024. Meanwhile, earnings across other developed markets barely touched 2%. That gap helped push the decision to drop international holdings in favor of American ones. Michael Gates, lead portfolio manager for BlackRock’s Target Allocation ETF model portfolio suite, said the US market is the only one showing consistency in sales growth, profit delivery, and revisions in analyst forecasts. “The US equity market continues to stand alone in terms of earnings delivery, sales growth and sustainable trends in analyst estimates and revisions,” Michael wrote. He added that non-US developed markets lagged far behind, especially when it came to sales. This week’s changes reflect that position. The move was made ahead of the Federal…
Share
BitcoinEthereumNews2025/09/18 01:44
Vitalik Buterin Reveals Ethereum’s Long-Term Focus on Quantum Resistance

Vitalik Buterin Reveals Ethereum’s Long-Term Focus on Quantum Resistance

TLDR Ethereum focuses on quantum resistance to secure the blockchain’s future. Vitalik Buterin outlines Ethereum’s long-term development with security goals. Ethereum aims for improved transaction efficiency and layer-2 scalability. Ethereum maintains a strong market position with price stability above $4,000. Vitalik Buterin, the co-founder of Ethereum, has shared insights into the blockchain’s long-term development. During [...] The post Vitalik Buterin Reveals Ethereum’s Long-Term Focus on Quantum Resistance appeared first on CoinCentral.
Share
Coincentral2025/09/18 00:31
The Role of Reference Points in Achieving Equilibrium Efficiency in Fair and Socially Just Economies

The Role of Reference Points in Achieving Equilibrium Efficiency in Fair and Socially Just Economies

This article explores how a simple change in the reference point can achieve a Pareto-efficient equilibrium in both free and fair economies and those with social justice.
Share
Hackernoon2025/09/17 22:30