<p>If your pinyin has tone symbols like yours: hùliánwǎng, putting them together(hùliánwǎng) or separately (hù lián wǎng) has no difference. Because every tone symbol represents a character. However, if you put symbols without tone symbols, such as hulianwang vs hu lian wang, only the separated version is better, because putting them together may be ambiguous. for example: xian can be 仙 or 西安。</p>

CC BY-SA 4.0
2023-04-14T04:24:14.833Z
2023-04-14T04:24:14.833Z
Havier
<p>I am working on displaying Chinese texts like <a href="https://ctext.org/dao-de-jing" rel="nofollow noreferrer">CText</a> does, but I wanted to have a version of each text which displays the pinyin next to it.</p>
<p>My question is, how do you properly represent Chinese &quot;words&quot; in pinyin? For example, Google translate's &quot;internet&quot; to 互联网 and the pinyin as <code>hùliánwǎng</code> (multiple syllables <code>hù</code> <code>lián</code> <code>wǎng</code> which is each character in isolation). Should you have these &quot;multi-syllable&quot; words in pinyin like <code>hùliánwǎng</code>, or should it be written as <code>hù lián wǎng</code>? Does it make any difference?</p>
<p>If you need the multi-syllable words to make it read right, that is going to be hard to do for my project (kind of a tangent note). I will get the Chinese characters (like for the Tao Te Ching) as a single string of characters, and the question is how to <em>automatically</em> splice the string of characters into individual multi-character words. The site <a href="https://chinese.yabla.com/chinese-english-pinyin-dictionary.php?define=%E6%98%A8%E6%99%9A%E4%B8%8D%E6%98%AF%E5%BE%88%E7%83%AD%E3%80%82" rel="nofollow noreferrer">Yabla</a> seems to split the &quot;sentences&quot; into the multi-word parts, but (a) I don't know how accurate that automatic conversion is, and (b) it is not free / open source (I would like the ability to do this for free). This second bit is kind of a tangent to the main question about how to represent words in pinyin, but if you know how I can convert sentences into pinyin automatically, please leave a comment.</p>
<p>This is what I'm currently doing (no multi-syllable words):</p>
<p><a href="https://i.sstatic.net/aHC7l.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/aHC7l.png" alt="enter image description here" /></a></p>

CC BY-SA 4.0
2023-04-14T05:12:36.333Z
I am not sure about your objective. Are you looking for a scripting system that automatically splices the string of characters into individual multi-character words? Maybe you need a library of all the words, such as the ABC Chinese-English Comprehensive Dictionary. It may not be a work in the short term.
PdotWang
CC BY-SA 4.0
2023-04-14T07:58:41.390Z
[《汉语拼音正词法基本规则》 GB/T 16159-2012](http://www.moe.gov.cn/ewebeditor/uploadfile/2015/01/13/20150113091717604.pdf)
tsh
CC BY-SA 4.0
2023-04-14T17:29:28.803Z
You‘d better not work on the WENYANWEN, (Literary Chinese, Classical Chinese).
PdotWang
<word><pinyin>
How to properly map pinyin to Chinese text in a sentence?
# How to properly map pinyin to Chinese text in a sentence?

(Asked by: username_0 on 2023-04-13)

I am working on displaying Chinese texts like [CText](https://ctext.org/dao-de-jing) does, but I wanted to have a version of each text which displays the pinyin next to it.

My question is, how do you properly represent Chinese "words" in pinyin? For example, Google translate's "internet" to 互联网 and the pinyin as `hùliánwǎng` (multiple syllables `hù` `lián` `wǎng` which is each character in isolation). Should you have these "multi-syllable" words in pinyin like `hùliánwǎng`, or should it be written as `hù lián wǎng`? Does it make any difference?

If you need the multi-syllable words to make it read right, that is going to be hard to do for my project (kind of a tangent note). I will get the Chinese characters (like for the Tao Te Ching) as a single string of characters, and the question is how to *automatically* splice the string of characters into individual multi-character words. The site [Yabla](https://chinese.yabla.com/chinese-english-pinyin-dictionary.php?define=%E6%98%A8%E6%99%9A%E4%B8%8D%E6%98%AF%E5%BE%88%E7%83%AD%E3%80%82) seems to split the "sentences" into the multi-word parts, but (a) I don't know how accurate that automatic conversion is, and (b) it is not free / open source (I would like the ability to do this for free). This second bit is kind of a tangent to the main question about how to represent words in pinyin, but if you know how I can convert sentences into pinyin automatically, please leave a comment.

This is what I'm currently doing (no multi-syllable words):

[![enter image description here](https://i.sstatic.net/aHC7l.png)](https://i.sstatic.net/aHC7l.png)

**Tags:** word, pinyin

> **Comments:**
> **username_1**: I am not sure about your objective. Are you looking for a scripting system that automatically splices the string of characters into individual multi-character words? Maybe you need a library of all the words, such as the ABC Chinese-English Comprehensive Dictionary. It may not be a work in the short term.  
> **username_2**: [《汉语拼音正词法基本规则》 GB/T 16159-2012](http://www.moe.gov.cn/ewebeditor/uploadfile/2015/01/13/20150113091717604.pdf)  
> **username_1**: You‘d better not work on the WENYANWEN, (Literary Chinese, Classical Chinese).  

---

## 1 answers

### Answer by username_3 on 2023-04-14. Score: 0 | Accepted answer

If your pinyin has tone symbols like yours: hùliánwǎng, putting them together(hùliánwǎng) or separately (hù lián wǎng) has no difference. Because every tone symbol represents a character. However, if you put symbols without tone symbols, such as hulianwang vs hu lian wang, only the separated version is better, because putting them together may be ambiguous. for example: xian can be 仙 or 西安。


---

