pangu.js
Automatically adds spaces between Chinese, Japanese or Korean text and English letters, numbers and symbols.
- Your data
- Stays on your device
- Coding needed
- No
- Cost
- Free
- Runs on
- Web browser
Automatically adds spaces between Chinese, Japanese or Korean text and English letters, numbers and symbols.
pangu.js adds a space wherever Chinese, Japanese or Korean characters sit right next to English letters, numbers or symbols. This makes mixed-language text easier to read. It comes as a Google Chrome extension that spaces every web page you visit, and as a JavaScript library and command-line tool for developers.
The Chrome extension has an "AI Spacing" feature. Some symbols, like + or -, mean different things in different places. For example, a minus sign might be a negative number or a separator. Simple pattern rules can't tell the difference, so the extension asks a small AI language model to decide.
That model is Gemini Nano, which runs through Chrome's built-in Prompt API (a way for web pages and extensions to use the AI built into the browser). Its makers say it works fully offline, nothing leaves your machine, and it's free.
People who read or write a mix of Chinese, Japanese or Korean with English and want cleaner spacing. Developers can also add it to websites or apps.
Yes. Anyone can install the Chrome extension from the Chrome Web Store; the library and command-line tool are for developers. New to this? Start here.
Using Claude Code, Cursor or another AI coding assistant? Paste the prompt and it will walk you through the setup.New to this?