Home / Insights / AI and Machine Learning
AI and Machine Learning
Multilingual NLP for Vietnamese, Thai and Japanese: What Changes When Your AI Product Leaves English
Vietnamese, Thai and Japanese each break a different assumption that English-first NLP pipelines quietly rely on. This guide explains what changes in normalisation, segmentation, models, evaluation and UX, and how to plan an AI product that works properly in all three.
Key takeaways
- Normalise text to a single Unicode form (usually NFC) at every entry point; Vietnamese diacritics in particular arrive in more than one encoding.
- Thai and Japanese do not separate words with spaces, so search, keyword extraction and analytics need a proper segmenter, not split-on-whitespace.
- Large multilingual models handle all three languages reasonably well out of the box, but quality, token cost and failure modes differ by language and must be measured separately.
- Build a per-language evaluation set reviewed by native speakers before choosing a model; an English benchmark tells you little about Thai.
- Plan UX details early: input without diacritics, Japanese politeness register, line breaking and font coverage all affect perceived quality.
On this page
- Why do English-first NLP pipelines break in Asian languages?
- What is actually different about Vietnamese, Thai and Japanese?
- How should you handle normalisation, segmentation and tokenisation?
- Which model approach fits each task?
- How do you evaluate quality per language?
- What should product and operations teams plan for?
- Implementation plan and checklist
- Frequently asked questions
- Sources and methodology
Many AI products are designed and tested in English, then “localised” by translating the interface and hoping the model copes. For Vietnamese, Thai and Japanese that approach tends to fail in quiet ways: search that misses obvious matches, keyword clouds full of fragments, chatbots that sound rude, and token bills higher than the English pilot suggested.
This article is for CTOs, product leads and engineering managers building AI features that must work in Southeast and East Asian markets. It explains, in order, why English assumptions break, what is specific to each language, how to handle the text plumbing (normalisation, segmentation and tokenisation), how to choose models, how to evaluate quality per language, and what to plan for in UX and operations. It ends with an implementation checklist.
The perspective comes from our own work. PoliteTech is based in Hanoi, so Vietnamese is a first language for most of our engineers, and we have built products for Southeast Asian users such as our AI career platform. Worked examples below are illustrative rather than client data.
Why do English-first NLP pipelines break in Asian languages?
Most text pipelines embed three assumptions that hold for English and fail elsewhere.
Assumption 1: a space marks a word boundary
Splitting on whitespace is the first step in a surprising amount of code: keyword search, tag extraction, word counts, simple classifiers and analytics dashboards. MDN’s documentation for Intl.Segmenter makes the point directly: splitting on spaces does not work for languages such as Japanese, Chinese, Thai, Lao, Khmer and Myanmar, which do not separate words with whitespace. Vietnamese does use spaces, but between syllables rather than words, which causes its own problems.
Assumption 2: identical-looking text is identical
The same visible character can be stored as different sequences of code points. MDN’s page on String.prototype.normalize() shows how a precomposed character and a base letter plus combining mark look the same yet fail an equality check. Vietnamese, with stacked tone and vowel marks, is especially exposed to this.
Assumption 3: one model quality figure covers every language
Vendors publish benchmark results that are dominated by English. A model that is excellent at English summarisation may be merely adequate in Thai, and the difference only shows up when native speakers read the output.
None of these are exotic edge cases. In a product with mixed-language users they affect search relevance, analytics accuracy, model cost and customer trust from day one.
Action: search your codebase for whitespace splitting, lower-casing and string equality on user text. Each occurrence is a candidate bug for at least one of these languages.
What is actually different about Vietnamese, Thai and Japanese?
The three languages are often grouped together as “Asian languages”, but technically they have little in common. The table summarises the differences that matter for software.
| Aspect | Vietnamese | Thai | Japanese |
|---|---|---|---|
| Script | Latin alphabet with many diacritics (tones and vowel marks) | Thai script, an abugida with vowel and tone marks around consonants | Kanji, hiragana and katakana mixed, often with Latin letters and digits |
| Spaces | Between syllables, not words; many words have two or more syllables | No spaces between words; spaces tend to mark phrase or sentence breaks | No spaces between words |
| Typical normalisation issue | Precomposed versus combining diacritics; text typed without diacritics | Combining marks and their order | Full-width versus half-width letters, digits and katakana |
| Segmentation need | Word grouping of syllables for keyword and phrase features | Dictionary or model-based word segmentation | Dictionary or model-based segmentation; morphological analysis for some tasks |
| Register and tone | Pronouns and forms of address vary with age and relationship | Polite particles and register vary with context | Formal politeness levels (keigo) matter in business contexts |
Vietnamese
Because Vietnamese uses a Latin-based alphabet, teams often assume English tooling will cope. It mostly does for display, but not for meaning. Spaces split syllables, so a naive tokeniser treats a two-syllable word as two unrelated words. Users also frequently type without diacritics in chat and search, so a query typed without accents must still find the accented product name.
Thai
Thai text runs words together, so any feature that needs words (search indexing, highlighting, keyword extraction, word-level analytics) needs a segmenter. Segmentation is ambiguous in places, and different tools can produce different splits for the same sentence.
Japanese
Japanese mixes three scripts plus Latin text, with no spaces. The W3C’s Requirements for Japanese Text Layout describes how kanji, hiragana and katakana are set solid with no space between characters and how Western characters are treated as a separate class, which is why line breaking follows its own rules. Full-width and half-width variants of the same letter or digit appear routinely in user input.
Action: for each target language, list the features in your product that depend on words, characters or exact matching, and note which row of the table affects them.
How should you handle normalisation, segmentation and tokenisation?
The plumbing layer is unglamorous, but it decides whether everything above it works. We treat it as a shared library with tests, not something each feature reimplements.
Normalisation
Normalise all incoming text to one Unicode form at every entry point: form submissions, file imports, API payloads and database migrations. MDN’s normalisation reference sets out the four forms: NFC and NFD use canonical equivalence, while NFKC and NFKD use compatibility equivalence. In practice:
- Use NFC for storage and display, so Vietnamese diacritics compare consistently whether they were typed as precomposed or combining characters.
- Use NFKC for search keys and matching only, so full-width Japanese input matches its half-width equivalent. MDN notes that compatibility normalisation can change appearance, so do not store or display NFKC output in place of the original.
- For Vietnamese search, also store a diacritic-stripped key so queries typed without accents still match.
Word segmentation
For Thai and Japanese, use a real segmenter. In the browser and in Node.js, Intl.Segmenter with granularity: "word" provides locale-aware segmentation and an isWordLike flag to separate words from punctuation; MDN lists it as widely available across browsers since April 2024. On the server, the ICU library’s boundary analysis applies dictionary support for Chinese, Japanese, Thai, Lao, Khmer and Burmese automatically. ICU’s own documentation is candid that its default rules are relatively simple and that some applications need more sophisticated linguistic analysis. For search over product catalogues or legal text, test whether a dedicated segmenter or morphological analyser for that language does measurably better.
Tokenisation for models
Model tokenisation is a separate concern from word segmentation. Modern language models use subword tokenisers trained on raw text. The SentencePiece paper by Kudo and Richardson showed that subword models can be trained directly from raw sentences without language-specific pre-tokenisation, which is one reason current models handle unsegmented scripts at all. The practical consequence is cost: the same meaning can take a different number of tokens in Vietnamese, Thai and Japanese than in English, depending on the model’s tokeniser. Measure it on your own content rather than assuming English ratios.
Action: build one text-processing module with normalisation, segmentation and search-key generation, cover it with tests in all three languages, and require every feature to use it.
Which model approach fits each task?
There is no single right model. The choice depends on the task, the volume, privacy needs and how much language-specific accuracy matters. We usually compare four options.
| Option | Strengths | Weaknesses | Good fit |
|---|---|---|---|
| Hosted multilingual LLM via API | Handles all three languages without training; strong at summarisation, drafting and flexible extraction | Per-token cost varies by language; data leaves your environment; quality varies by language and task | Chat, summarisation, drafting, low-to-medium volume extraction |
| Open-weight multilingual model, self-hosted | Data stays in your infrastructure; predictable cost at volume | Hosting and operations effort; may trail hosted models on smaller languages | Privacy-sensitive workloads, high steady volume |
| Classic or fine-tuned small model per language | Fast, cheap, consistent for well-defined labels | Needs labelled data per language; less flexible | High-volume classification, routing, entity extraction with fixed schemas |
| Translate to English, then process | Reuses English pipelines and models | Translation errors compound; loses tone, names and register | Rarely the best choice; acceptable for internal analytics where nuance matters less |
For example, a regional recruitment platform might use a hosted LLM to summarise CVs written in Vietnamese and Japanese, a small fine-tuned classifier to route job categories at high volume, and a multilingual embedding model for search. Mixing approaches by task is normal. We compare the classic and LLM options for text classification in more detail in our decision guide to classic NLP versus LLMs, and embedding choice for multilingual search in choosing an embedding model for enterprise search.
Questions to settle before choosing
- Which tasks need generation and which need only labels or fields?
- What volume per language per month, and what latency?
- Can the text leave your environment or a particular region?
- Is there labelled data in each language, or can it be created affordably?
Action: map each AI feature to one of the four options with a one-line rationale, then validate the choices with the evaluation set described next.
How do you evaluate quality per language?
The most common mistake we see is evaluating in English and assuming the result transfers. Evaluation has to be per language and, ideally, per task.
- Collect real samples. Gather 100 to 300 representative inputs per language per task, from real users where privacy allows. Include informal text: chat messages without diacritics, mixed Japanese and English, Thai with abbreviations.
- Define the expected output. For classification and extraction, label the correct answers. For generation, write a short rubric: accuracy, completeness, tone and register, and naturalness.
- Use native reviewers. A fluent non-native reviewer will miss register problems that a native speaker spots immediately. Budget for native review in each language.
- Score every candidate model. Run each model and prompt on the same set. Record accuracy, cost per item and latency per language.
- Check segmentation separately. For search features, test retrieval with known queries and expected results, including diacritic-free Vietnamese and full-width Japanese inputs.
- Keep the set as a regression suite. Re-run it whenever you change model, prompt or tokeniser.
What to look for in results
- A quality gap between English and the other languages that is larger than your users will tolerate.
- Systematic errors: names transliterated wrongly, dates in the wrong format, honorifics dropped.
- Responses that switch language mid-answer, especially in Thai and Vietnamese.
- Cost per item that differs noticeably by language because of token counts.
Action: do not sign off a model for a language until its evaluation set has been scored and reviewed by a native speaker.
What should product and operations teams plan for?
Some of the most visible problems are not model problems at all.
Input and search behaviour
- Vietnamese users switch between typing with and without diacritics; search and matching must handle both.
- Japanese users type via input method editors, which convert as they type. Do not fire search or validation on every keystroke during composition.
- Highlighting matched terms in Thai or Japanese results requires segment-aware highlighting, not whitespace tokens.
Tone and register
A chatbot reply that is acceptable in English can sound abrupt in Japanese or overly familiar in Vietnamese. Write a register guide per language (which pronouns, which politeness level, how to address customers) and include it in prompts and evaluation rubrics.
Display
Check font coverage for Vietnamese stacked diacritics and Thai marks at small sizes, and test line breaking for Japanese text, which follows its own rules as the W3C layout requirements describe. Truncation by character count can cut Thai words or Vietnamese syllables awkwardly.
Operations and cost
- Track token usage and cost per language, not just in total.
- Route low-confidence outputs to human review, with reviewers who speak that language.
- Log the language detected for each request so quality dashboards can be split by language.
Action: add a language column to your AI quality and cost dashboards before launch.
Implementation plan and checklist
A sensible sequence for adding Vietnamese, Thai and Japanese support to an AI product looks like this.
- Audit existing code for whitespace splitting, case folding and raw string comparison.
- Build the text module: NFC normalisation, NFKC search keys, diacritic-free Vietnamese keys, segmentation for Thai and Japanese.
- Create evaluation sets per language and task with native reviewers.
- Shortlist and test models per task, recording quality, cost and latency per language.
- Write register guides and bake them into prompts and rubrics.
- Pilot with real users in one language first, then expand.
- Monitor by language after launch and re-run evaluation on every model or prompt change.
Checklist
- All text entry points normalise to NFC.
- Search uses compatibility-normalised and diacritic-free keys.
- Thai and Japanese segmentation tested on your own content.
- Evaluation set of at least 100 items per language per task, natively reviewed.
- Token cost per language measured, not estimated.
- Register guide approved by a native speaker per language.
- Fonts and line breaking checked on mobile and desktop.
- Human review path with language-qualified reviewers.
- Dashboards split by language.
PoliteTech’s natural language processing work covers classification, extraction, summarisation, speech-to-text and multilingual processing, with accuracy tested for each required language on the client’s own samples. If your product also handles voice, our guide to speech-to-text in products covers the transcription side.
Frequently asked questions
Can we just use one multilingual LLM for everything?
Often you can start that way for generation tasks, but measure quality and cost per language. For high-volume classification or extraction, a smaller model per task is frequently cheaper and more consistent, and search still needs proper normalisation and segmentation regardless of the model.
Is translating everything into English first a reasonable shortcut?
Usually not for customer-facing features. Translation errors compound, and names, tone and register are lost. It can be acceptable for internal analytics where approximate meaning is enough.
How large does a per-language evaluation set need to be?
A practical starting point is 100 to 300 real examples per language per task, labelled or scored with a rubric by native speakers. Grow it as you find new failure cases in production.
Why does our Vietnamese search miss results that are obviously there?
The usual causes are mixed Unicode forms of the same diacritics, users typing without accents, and syllable-based tokenisation. Normalising to NFC, adding a diacritic-free search key and testing with real queries typically fixes most of it.
Will Thai or Japanese cost more to process with LLMs?
It can, because tokenisers split different languages into different numbers of tokens for the same meaning. The size of the difference depends on the model, so measure token counts on a sample of your own content before setting budgets.
Sources and methodology
Guidance reflects PoliteTech delivery experience. The external references below informed specific points in this article.
- MDN Web Docs: Intl.Segmenter — accessed 9 November 2026. Whitespace splitting fails for Japanese, Thai and similar languages; locale-aware word segmentation and isWordLike; wide browser availability since April 2024.
- MDN Web Docs: String.prototype.normalize() — accessed 9 November 2026. NFC, NFD, NFKC and NFKD forms; canonical versus compatibility equivalence; compatibility forms suit search but can change appearance.
- ICU User Guide: Boundary Analysis — accessed 9 November 2026. Dictionary-based word boundaries for Chinese, Japanese, Thai, Lao, Khmer and Burmese, and the stated limits of the default rules.
- Kudo and Richardson: SentencePiece (arXiv, 2018) — accessed 9 November 2026. Subword tokenisers trained directly from raw sentences without language-specific pre-tokenisation.
- W3C: Requirements for Japanese Text Layout (Working Group Note, 2020) — accessed 9 November 2026. Japanese scripts set solid without spaces, Western characters as a separate class, and line-breaking rules.
Related reading
Continue your research
Is your AI product ready for Vietnamese, Thai and Japanese users?
We can audit your text pipeline, build per-language evaluation sets and recommend models for each task, with native Vietnamese engineers on the team.
