---
title: "Google's BudouX Fixes Broken Asian Text Wrapping in 15 KB"
subtitle: "Google's BudouX brings ML-powered line breaking to CJK languages, now baked into Chrome, Android 14, and the ICU standard library"
url: "https://alphasignal.ai/news/google-s-budoux-fixes-broken-asian-text-wrapping-in-15-kb"
author: "AlphaSignal Newsroom"
author_url: "https://alphasignal.ai/editorial-team"
company: "Google"
company_url: "https://alphasignal.ai/company/google"
published: "2026-06-18T12:43:50.000Z"
updated: "2026-06-21T20:03:19.004Z"
type: "Repo"
topics:
  - "Open Source"
  - "Development"
subtopics:
  - "Code Generation"
upvotes: 2894
source_url: "https://github.com/google/budoux"
comments: 0
truncated: true
---

# Google's BudouX Fixes Broken Asian Text Wrapping in 15 KB

> Google's BudouX brings ML-powered line breaking to CJK languages, now baked into Chrome, Android 14, and the ICU standard library

[BudouX](https://github.com/google/budoux) is Google's open-source machine learning library that solves one of the oldest unsolved problems in web typography: where to break lines in Japanese, Chinese, and Thai text. Unlike English, these languages have no spaces between words, so browsers have historically broken lines at arbitrary character boundaries, often mid-word, producing text that looks broken and reads awkwardly. BudouX fixes this by predicting semantically correct break points, and it does so in under 15 KB.

## A problem older than the modern web

Traditional text-wrapping algorithms rely on whitespace, which is absent in languages like Japanese, Chinese, and Thai, leading to broken words and poor readability in narrow containers. The original solution, a library called Budou, worked by calling out to third-party word segmenters. The biggest barrier was that it depended on third-party word segmenters, which are large programs infeasible to download for every web page request, and making a request to a cloud-based word segmentation service for every sentence was undesirable considering speed and cost.

BudouX is the successor, designed to eliminate that dependency entirely. It takes only around 15 KB including its machine learning model, making it reasonable to use even on the client-side. That is a remarkable constraint to hit for a model that handles the full complexity of Japanese phrase segmentation.

![BudouX transforming Japanese input text into properly segmented output phrases](https://raw.githubusercontent.com/google/budoux/main/example.png) 

## How it works under the hood

BudouX frames line breaking as a binary classification problem: for every character boundary in a sentence, should a break occur here or not? The library utilizes an AdaBoost-based training approach to build strong classifiers from simple feature stumps for phrase segmentation. AdaBoost (Adaptive Boosting) is an ensemble method that combines many weak classifiers, each looking at a simple feature, into a single strong one. Here, those features are the characters surrounding each potential break point, their Unicode block categories, and combinations of both.

_Preview only. Full text requires an AlphaSignal Pro account._

## Sources

- [google/budoux - GitHub](https://github.com/google/budoux)
- [Introducing four new international features in CSS - Chrome for Developers](https://developer.chrome.com/blog/css-i18n-features)
- [ICU 73 Release Notes - unicode.org](https://icu.unicode.org/download/73)
- [Optimizing CJK Text Wrapping with BudouX - Dev|Journal](https://earezki.com/ai-news/2026-04-26-how-to-build-smarter-multilingual-text-wrapping-with-budoux-through-parsing-html-rendering-model-introspection-and-toy-training/)
- [Typography troubles: Balancing lines in Japanese & Korean](https://ryelle.codes/2025/04/typography-troubles-balancing-in-japanese-korean/)
