AI doesn't read English. It reads numbers. Understanding the simple journey your words take — from text, to tokens, to predictions — is the single biggest mental upgrade you can make as a prompt writer. You don't need any maths. Just five minutes.
Have you ever wondered why an AI sometimes invents a word, misspells a name, or "forgets" something you mentioned earlier in the chat? The answer lies in how it actually processes language. Once you understand the three core ideas — tokens, the context window, and attention — almost every quirk of AI behaviour starts making sense.
When you type "The quick brown fox", the AI does not see four words. It first breaks the sentence into smaller pieces called tokens. A token is roughly a chunk of letters that often appears together. Common short words are one token. Longer or rarer words get split into multiple tokens. As a rough rule of thumb, 100 tokens ≈ 75 English words.
Each token gets converted into a number, and that number is what the model actually works with. The AI is, in a sense, a very sophisticated number-prediction machine — it looks at the numbers so far and predicts which number comes next, then turns that number back into a token, and that token back into text on your screen.
The AI can only look at a limited number of tokens at once. That limit is called the context window. Modern models support windows from a few thousand tokens to over a million. Everything inside the window is "visible" to the AI right now: your current prompt, the system instructions, plus the recent back-and-forth of your conversation. Anything that falls outside the window is effectively gone — the AI can no longer see it.
Inside the context window, not every token is equally important. The AI uses a mechanism called attention to figure out which earlier tokens are most relevant when predicting the next one. If you ask "What did I say about the budget?", the model "pays attention" to the earlier mention of "budget" and uses that as the anchor for its answer. Attention is the reason a well-written prompt with clear anchors (key terms, headings, bullet points) gets better results than a wall of unstructured text.
Most beginners assume AI works like a human reader — that it grasps meaning the way we do. That assumption causes three common problems:
Wall of text — attention spreads thin
so I'm working on this new app idea it's
basically a marketplace and I need help
thinking through the pricing structure
also can you check the grammar in my pitch
deck which I'll paste below and also write
me a tagline thanks…
Structured — clear anchors for attention
I'm working on a marketplace app.
I need help with three things:
1. Pricing structure — suggest 2 models.
2. Grammar check on the pitch deck below.
3. One tagline (under 8 words).
Pitch deck text:
"""
… paste here …
"""
The second version uses numbered tasks, headings, and triple-quote delimiters. Each anchor tells attention exactly what to focus on, and the model is far more likely to address all three asks instead of just the first.
""", XML tags, or markdown headings separate "instructions" from "content the model should work on".Open any AI tool and ask:
How many tokens are in the sentence 'Prompt engineering is genuinely useful'? Show me how you would split it.
Compare its answer to your own intuition about word count.
Write one giant paragraph asking the AI to do three things at once. Then rewrite it as three numbered points with a heading above each. Notice which answer feels more complete.
In an ongoing chat, scroll up and copy a key fact you mentioned twenty messages ago. Ask the AI to recall it. If it cannot, you have found the edge of its context window.
Sign in to join the discussion and post comments.
Sign inPrompt Engineering for Image Generation
Turn words into stunning visuals. Master AI image generation tools like Midjourney, DALL·E 3, and Stable Diffusion with 18 focused tutorials — from first prompt to full brand identity.
Prompt Engineering for Content & Copywriting
Write blogs, ads, emails, and social media content ten times faster with AI. 13 practical tutorials on prompt engineering for content creators and copywriters.
Prompt Engineering for Specific AI Tools
Tool-by-tool mastery — deep dives into ChatGPT, Claude, Gemini, GitHub Copilot, Midjourney, Stable Diffusion, and more. Learn the exact prompting techniques each platform rewards.
Prompt Engineering for Business & Productivity
Use AI to work smarter — automate tasks, make better decisions, and communicate professionally. 12 practical business prompt tutorials for professionals.
Prompt Engineering for Developers
Use AI as your coding co-pilot. 18 tutorials on writing prompts to generate clean code, debug faster, write tests, build APIs, and ship better software.
Prompt Engineering for Education & Learning
Use AI as your personal tutor. Learn how to study faster, create lesson plans, generate practice questions, master languages, and prepare for competitive exams with smart prompts.