syntax_v2
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| syntax_v2 [2026/02/17 21:29] – [Pinyin] Removed some xx5 entries kbaiko | syntax_v2 [2026/09/29 02:22] (current) – [Pinyin] kbaiko | ||
|---|---|---|---|
| Line 4: | Line 4: | ||
| // Below are guidelines on what CC-CEDICT entries **should** look like. CC-CEDICT still has many old entries that do not comply with these rules yet. // | // Below are guidelines on what CC-CEDICT entries **should** look like. CC-CEDICT still has many old entries that do not comply with these rules yet. // | ||
| - | |||
| - | Version 2 (v2) introduces a new syntax for the pinyin of an entry, allowing for the specification of pinyin that follows standard pinyin orthography. In particular, it enables the combination of syllables to form words. For example, in v2, 二次方程 (quadratic equation) can now be written as two words, " | ||
| An entry is considered to be in v2 format if it uses double square brackets for the pinyin. v1 entries use a single square bracket. | An entry is considered to be in v2 format if it uses double square brackets for the pinyin. v1 entries use a single square bracket. | ||
| + | |||
| + | The primary difference between v1 and v2 is that v2 entries follow standard pinyin orthography. In v1, all pinyin were written with spaces between each syllable. In v2, syllables can be combined to form words. For example, | ||
| + | |||
| < | < | ||
| - | v2: [[pin1yin1]] | + | v1: 二次方程 二次方程 |
| - | v1: [pin1 yin1] | + | v2: 二次方程 二次方程 |
| </ | </ | ||
| - | However, | + | However, |
| In particular, prior to April 2022, glosses and senses were separated using a /. As of April 2022, senses are to be separated with a / while glosses are to be separated with a ;. (This was a change in v1 format of definitions, | In particular, prior to April 2022, glosses and senses were separated using a /. As of April 2022, senses are to be separated with a / while glosses are to be separated with a ;. (This was a change in v1 format of definitions, | ||
| + | |||
| + | A number of other (mostly minor) syntax and format changes have also been established over the years, and are outlined on this wiki. v1 entries (some of which date back to 1998), may not necessarily follow our latest conventions. However, v2 entries should. Part of the v2 conversion process is making sure these rules are followed. | ||
| Three editions of CC-CEDICT are published regularly: | Three editions of CC-CEDICT are published regularly: | ||
| Line 32: | Line 35: | ||
| < | < | ||
| Traditional Simplified [[pin1yin1]] /gloss; gloss; .../gloss; gloss; .../ | Traditional Simplified [[pin1yin1]] /gloss; gloss; .../gloss; gloss; .../ | ||
| - | </ | ||
| - | |||
| - | For example: | ||
| - | < | ||
| - | 皮實 皮实 [[pi2shi5]] /(of things) durable/(of people) sturdy; tough/ | ||
| </ | </ | ||
| Line 47: | Line 45: | ||
| If an editor wants to add additional senses for an existing trad-simp-pinyin combination, | If an editor wants to add additional senses for an existing trad-simp-pinyin combination, | ||
| + | |||
| ==== Traditional and simplified characters ==== | ==== Traditional and simplified characters ==== | ||
| The Chinese word should consist of one or more Chinese characters, without any spaces in it. Both traditional and simplified forms should be provided, and the two must have the same length. | The Chinese word should consist of one or more Chinese characters, without any spaces in it. Both traditional and simplified forms should be provided, and the two must have the same length. | ||
| - | There are a very small number | + | For an official mapping between simplified and traditional characters, one can refer to the 通用规范汉字表. Many print and online dictionaries also list both traditional and simplified forms of characters. |
| + | |||
| + | CC-CEDICT prioritizes real-life usage over what the 通用规范汉字表 and various print dictionaries say. In particular, our convention is that the traditional characters represent Taiwanese Mandarin usage, while the simplified characters represent mainland China usage. The 通用规范汉字表 does not cover Taiwanese Mandarin usage, which leads to occasional discrepancies between the 通用规范汉字表 and CC-CEDICT. For instance, | ||
| < | < | ||
| - | % % [pa1] /percent (Tw)/ | + | 豔 艳 [[yan4]] /.../ |
| - | 3C 3C [san1 C] /computers, communications, | + | 艷 艳 [[yan4]] /variant of 豔|艳[yan4]/ |
| - | 421 421 [si4 er4 yi1] /four grandparents, | + | 豓 艳 [[yan4]] /variant of 豔|艳[yan4]/ |
| - | K人 K人 [K ren2] /(slang) to hit sb; to beat sb/ | + | |
| </ | </ | ||
| - | **Below are some notes on how these entries | + | (For more information |
| - | Let's take " | + | Another discrepancy lies in 睾 - the 通用规范汉字表 indicates the traditional and simplified forms are the same, but in Taiwan, this character is most commonly written |
| - | There are several ways one might like to render " | + | < |
| - | - e-rén | + | 睪 睾 [[gao1]] /.../ |
| - | - erén | + | 睾 睾 [[gao1]] /variant of 睪|睾[gao1]/ |
| - | - yìrén | + | </ |
| - | The Editor website attempts to match the parts of the headword | + | For words with multiple characters, characters can be simplified one-by-one, for example 書畫 is simplified to 书画 by converting 書 to 书 and 畫 to 画. In a very small number of cases, we practice |
| - | For example, in the following entry, " | + | * 彷彿|仿佛[fang3fu2] - 彷 is not considered a traditional form of 仿 |
| - | < | + | * 份子|分子[fen4zi3] |
| + | * 座標|坐标[zuo4biao1] - 座 is not considered a traditional form of 坐 | ||
| - | If the Editor website https:// | + | These entries introduce " |
| + | ==== Pinyin ==== | ||
| + | The pinyin should be in accordance with standard pinyin orthography. For a comprehensive reference, we recommend //Chinese Romanization: | ||
| - | < | + | For the majority of entries, an entry can be converted from v1 to v2 by simply removing the spaces within words (see 二次方程 above). |
| - | To specify | + | Rules about our pinyin format: |
| - | < | + | - Tones are indicated with numerals instead of diacritics. The neutral tone (轻声) uses the numeral |
| + | - Because we use numerals, the boundary between characters is clearly established and apostrophes before vowels are not needed | ||
| + | | ||
| + | - 儿 as the “retroflex final” is written as r5 | ||
| + | - Raw tones should be used: | ||
| + | - Tone sandhi is **not** indicated (e.g., 你好[ni3hao3] is not written as [ni2hao3]) | ||
| + | - 一 and 不 have various modifications in tone depending on what follows them, but these are **not** indicated in the pinyin (e.g., 一半[yi1ban4] is not written as [yi2ban4], 不是[bu4shi4] is not written as [bu2shi4]) | ||
| + | - Word-related changes to neutral tone, however, **are** indicated. These are especially common with reduplicated forms (e.g., use ma1 ma5, not ma1 ma1; ba4 ba5, not ba4 ba4; kan4 kan5, not kan4 kan4; xiang3 xiang5 ("take under consideration" | ||
| + | - xx5: Represents an entry where pinyin does not apply. There are very few entries with this pinyin and we do not expect to add more. | ||
| - | ... as would several other forms, including | + | < |
| - | < | + | 々 々 [xx5] /iteration mark indicating repetition of the preceding character in horizontal writing (rare in modern Chinese)/ |
| + | 〻 〻 [xx5] /iteration mark indicating repetition of the preceding character in vertical writing | ||
| + | </ | ||
| - | Here is a link to a webpage where a proposed entry can be tested to see if it can be parsed correctly. | ||
| - | "Parse entry" webpage: | + | A hyphen can be included in the pinyin when appropriate. Here are some cases where we have elected to use a hyphen: |
| - | https:// | + | |
| - | To specify " | + | 1. In lists |
| - | < | + | < |
| + | 英法 英法 | ||
| + | 色香味俱全 色香味俱全 [[se4-xiang1-wei4 ju4quan2]] /to smell, look and taste great/ | ||
| + | 柴米油鹽醬醋茶 柴米油盐酱醋茶 [[chai2-mi3-you2-yan2-jiang4-cu4-cha2]] /(lit.) firewood, rice, oil, salt, soy sauce, vinegar and tea/(fig.) life's daily necessities/ | ||
| + | </ | ||
| - | Generally, it is regarded as preferable not to indicate | + | 2. In two-character words where the characters have a contrasting relationship |
| + | < | ||
| + | 成敗 成败 [[cheng2-bai4]] /success or failure/ | ||
| + | 接送 接送 [[jie1-song4]] /to pick up and drop off; to ferry back and forth/ | ||
| + | 領屬 领属 [[ling3-shu3]] /to have a hierarchical (possessive or supervisory) relationship/ | ||
| + | </ | ||
| - | ==== Pinyin ==== | + | 3. To separate non-Chinese and Chinese text |
| - | The pinyin should be in accordance with standard pinyin orthography, | ||
| - | |||
| - | Proper nouns should be capitalized, | ||
| < | < | ||
| - | 蘋果手機 苹果手机 | + | e人 e人 [[e-ren2]] /(slang) extroverted person/ |
| - | 師生 师生 | + | U盤 U盘 [[U-pan2]] /USB flash drive; thumb drive/ |
| + | X光 X光 [[X-guang1]] /X-ray/ | ||
| </ | </ | ||
| - | Other rules about our pinyin format: | + | 4. In expressions that can be split in two related |
| - | - The neutral tone uses the numeral " | + | |
| - | - ü, also known as the umlaut, is written as “u:”. For example, 女 -> nu:3 | + | |
| - | - 儿 as the “retroflex final” is written as r5 | + | |
| - | - Raw tones should | + | |
| - | - Tone sandhi is **not** indicated (e.g., ni3 hao3 is not changed to ni2 hao3) | + | |
| - | - Although " | + | |
| - | - Word-related | + | |
| - | | + | |
| - | - xx5: There are very few entries where the pinyin is xx5, which represents unknown pinyin or characters where pinyin does not apply. | + | |
| < | < | ||
| - | 々 々 [xx5] /iteration mark (used to represent a duplicated character)/ | + | 人山人海 人山人海 |
| + | 子子孫孫 子子孙孙 [[zi3zi3-sun1sun1]] /(idiom) one's posterity/ | ||
| + | 半信半疑 半信半疑 [[ban4xin4-ban4yi2]] /(idiom) half believing, half doubting; not quite convinced; skeptical/ | ||
| + | 顛倒是非 颠倒是非 [[dian1dao3-shi4fei1]] / | ||
| + | 三更半夜 三更半夜 [[san1geng1-ban4ye4]] /(idiom) in the depth of the night; very late at night/ | ||
| </ | </ | ||
| + | 5. Between 第 and a number N, meaning " | ||
| + | |||
| + | < | ||
| + | 第一次 第一次 [[di4-yi1 ci4]] /the first time; for the first time/ | ||
| + | 第二次世界大戰 第二次世界大战 [[Di4-er4 Ci4 Shi4jie4 Da4zhan4]] /World War II/ | ||
| + | </ | ||
| ==== Definition ==== | ==== Definition ==== | ||
| - | Definitions | + | A definition is made up of senses, and a sense is made up of glosses. Senses |
| - | Senses should be separated using a slash "/" | + | Generally, glosses within a sense are synonyms and can be included to remove ambiguity, while senses represent wholly different meanings |
| - | Do not add definite or indefinite articles | + | < |
| + | 算 算 [[suan4]] /to calculate; to figure out/to include; to count in/to count; to be valid; to carry weight/to regard as; to consider | ||
| + | </ | ||
| - | Don't use parts of speech. Instead try to give an indication of grammatical usage within the English definition. CC-CEDICT is a human readable descriptive dictionary, not a resource intended for machine processing. | + | Rules to follow when writing a definition: |
| + | - Use American English. | ||
| + | - Do not add definite or indefinite articles (e.g. " | ||
| + | - Don't use parts of speech. Instead try to give an indication of grammatical usage within the English definition. CC-CEDICT is a human readable descriptive dictionary, not a resource intended for machine processing. | ||
| + | - The singular form is preferred over the plural form, unless the word is typically used in its plural form. | ||
| + | - Entries for people should include dates if possible (birth, death, years in which the person was active in a certain role etc) and why this person is of interest (was famous writer, took part in a revolution, was murdered etc). If a person isn't particularly famous and isn't related to China or Chinese culture, please don't include them. | ||
| + | - Names of plants, animals, musical instruments should give common name and scientific name when appropriate; | ||
| - | Abbreviations etc cf e.g. i.e. do not need any further punctuation. | ||
| - | Extended meanings indicated by lit. .. fig. combination when appropriate or when a common expression refers back to a classical incident or chengyu, one can refer to it with cf (incident in Records of the Historian). | + | === Ambiguity due to homonyms === |
| + | Many words in the English language have multiple meanings. If such a word is used to write a definition, additional information should be provided to prevent ambiguity. | ||
| + | |||
| + | < | ||
| + | 首都 首都 [[shou3du1]] /capital (city)/ | ||
| + | </ | ||
| + | |||
| + | The text between the parentheses is " | ||
| + | |||
| + | |||
| + | === General principles of translation === | ||
| + | |||
| + | The English should be meaningful, not horribly ugly, and bear a close relation to the Chinese meaning. It should correspond to something that could be used naturally by an English speaker (I think Arthur Waley has some advice saying that just because a text is about magnetohydrodynamics, | ||
| + | |||
| + | On the other hand, a translation always loses something, and the translator can compensate by substituting an English equivalent (e.g. a biblical or Shakespearian allusion in place of a Confucian idiom). | ||
| + | |||
| + | Most words have more than one meaning, and more than one grammatical function. Care is needed not to concentrate only on a specific occurrence to the exclusion of others. e.g . the actual occurrence may be a verb in the past participle (say " | ||
| + | |||
| + | There are tens of thousands, if not a hundred thousand, Chinese characters that have ever been created in Chinese history. Many of them are archaic, obscure, and have not been used in centuries, perhaps millennia, and it may not be possible to provide a definition. If you can't find a character in common dictionaries, | ||
| Line 147: | Line 191: | ||
| Taiwanese GuoYu sometimes prefers not to use the neutral tone, so we do not list Taiwan pronunciations when they consist only of saying " | Taiwanese GuoYu sometimes prefers not to use the neutral tone, so we do not list Taiwan pronunciations when they consist only of saying " | ||
| + | ==== Labels ==== | ||
| - | ==== Ambiguity due to homonyms ==== | + | See [[labels]] |
| - | + | ||
| - | Sometimes words used in the English definitions can have multiple meanings. If the Chinese word does not have these additional meanings, additional information should be provided to prevent ambiguity: | + | |
| - | 首都 首都 | + | |
| - | + | ||
| - | The text between the parentheses is " | + | |
| ==== References ==== | ==== References ==== | ||
| Line 161: | Line 201: | ||
| ==== Classifiers ==== | ==== Classifiers ==== | ||
| - | Classifiers | + | Classifiers, or "measure |
| - | 避風港 避风港 [bi4 feng1 gang3] / | + | |
| - | Classifiers follow the ' | + | < |
| + | 麵包 面包 [[mian4bao1]] / | ||
| + | 麵包店 面包店 [[mian4bao1dian4]] /bakery/CL:家[jia1]/ | ||
| + | </ | ||
| - | The classifier words itself can be described using:\\ | + | They follow the reference syntax of traditional|simplified[pinyin], |
| - | /classifier for small round things (peas, bullets, peanuts, pills, grains etc)/ | + | |
| + | We typically omit general classifiers like 個|个[ge4] which can be applied to almost every single noun. | ||
| + | |||
| + | A classifier itself can be described like so: | ||
| + | |||
| + | < | ||
| + | /classifier for small round things (peas, bullets, peanuts, pills, grains etc)/ | ||
| + | </ | ||
| ==== Bound forms ==== | ==== Bound forms ==== | ||
| Line 175: | Line 223: | ||
| ===== Punctuation ===== | ===== Punctuation ===== | ||
| + | ==== Dashes and hyphens ==== | ||
| + | |||
| + | We do not use the em dash (—). Ranges of numbers, dates, times etc should be separated by the en dash (–). In other cases, either the en dash or hyphen (-) should be used following standard English grammar. | ||
| ==== Middle dot ==== | ==== Middle dot ==== | ||
| Line 188: | Line 239: | ||
| ==== Comma ==== | ==== Comma ==== | ||
| - | Commas are sometimes used in Chinese | + | Commas are sometimes used in proverbs |
| < | < | ||
| Line 196: | Line 247: | ||
| The comma within the Chinese characters should be the " | The comma within the Chinese characters should be the " | ||
| + | Note: In v1, a space was also inserted before the comma in the pinyin (so the pinyin would contain " , "). The space before the comma has been phased out in v2. | ||
| - | ===== Retroflex finals ===== | + | ==== Enumeration comma ==== |
| - | There are 3 kinds of R-ised words that use the 兒/儿 character: | + | The enumeration comma "、", |
| - | - 兒/儿 is not-optional because it's its own syllable (usually meaning | + | |
| - | | + | |
| - | - 兒/儿 is an optional northern pronunciation (er2hua4) | + | |
| - | These 3 cases should be formatted as follows: | + | < |
| - | - 女兒 女儿 | + | 八字方針 八字方针 [[ba1zi4 fang1zhen1]] /a policy expressed as an eight-character slogan/(esp.) the eight-character slogan for the economic policy proposed by Li Fuchun 李富春[Li3 Fu4chun1] in 1961: 調整、鞏固、充實、提高|调整、巩固、充实、提高[tiao2zheng3, |
| - | | + | </code> |
| - | - 花兒 花儿 | + | |
| - | //Please note: words ending with ' | + | ===== 兒|儿, erhua and rhotacization ===== |
| + | The 兒|儿 character can be used in three different ways | ||
| - | ===== Choice of entries and translations ===== | + | 1. 兒|儿[er2] is not-optional because it's its own syllable (meaning " |
| - | The current CC-CEDICT database contains a considerable number of infelicities, | ||
| - | |||
| - | A Chinese word for which a Google query with the following syntax results in many thousand of hits should probably be added to CC-CEDICT, with translations corresponding to the main usages. | ||
| < | < | ||
| - | +" | + | 女兒 女儿 [[nu:3er2]] /daughter/ |
| </ | </ | ||
| - | //(the +"" | ||
| + | 2. 兒|儿[r5] is a non-optional suffix because it changes both the pronunciation and meaning of the word | ||
| - | ===== General principles of translation ===== | + | < |
| + | 頭兒 头儿 [[tou2r5]] /leader/ | ||
| + | </ | ||
| - | The English should be meaningful, not horribly ugly, and bear a close relation to the Chinese | + | 3. 兒|儿[r5] is an optional suffix, changing the pronunciation of the word but not the meaning |
| - | On the other hand, a translation always loses something, and the translator can compensate by substituting an English equivalent (e.g. a biblical or Shakespearian allusion in place of a Confucian idiom). | + | < |
| + | 花兒 花儿 [[hua1r5]] /erhua form of 花[hua1]/ | ||
| + | </ | ||
| - | Names of persons should say dates if possible | + | //Please note: words ending with ' |
| + | ===== Choice | ||
| - | Names of plants, animals, musical instruments should give common name and scientific name when appropriate; | + | The current CC-CEDICT database contains a considerable number |
| - | Most words have more than one meaning, and more than one grammatical function. Care is needed not to concentrate only on a specific occurrence to the exclusion | + | A Chinese word for which a Google query with the following syntax results in many thousand |
| + | < | ||
| + | +"combination of characters" | ||
| + | </ | ||
| + | //(the +"" | ||
| - | There are 20,000 Chinese characters in the more advanced dictionaries, | ||
| - | ===== Variants | + | ===== Romanization of foreign languages |
| - | Many characters have variants, sometimes more than one, sometimes with identical meaning or quite different meanings. Some choice of variants found in texts on websites will arise because of the different input methods, and the user may have had no intention | + | When transcribing foreign words in definitions, please use the following romanization |
| + | * Japanese: [[http:// | ||
| + | * Korean: [[http:// | ||
| - | You can get rough usage frequency information by searching the alternative word forms in Google. Please use this syntax to make sure that Google doesn' | + | If an alternative |
| - | < | + | |
| - | Additionally you can use Google' | + | ===== Non-Chinese |
| - | 789 Chinese (Traditional) pages for +" | + | |
| - | 17,700 Chinese (Simplified) pages for +" | + | |
| - | 1,750 Chinese (Traditional) pages for +" | + | |
| - | 66,900 Chinese (Simplified) pages for +" | + | |
| - | It often happens that Google tells you that +" | + | On occasion the Chinese language uses English letters or numerals to write a word. For example, we have |
| - | When there are alternative forms of the same expression, and the less common form is at most 5 times less common, the less common entry should have /also written ../ referring | + | < |
| + | # English letters | ||
| + | ky ky [[ky]] | ||
| + | coser coser [[coser]] /cosplayer/ | ||
| + | # Mix of English and Chinese | ||
| + | e人 e人 [[e-ren2]] /(slang) extroverted person/ | ||
| + | 勿cue 勿cue [[wu4-cue]] /(Internet slang) don't call on me; don't drag me in/ | ||
| - | **PROPOSED CHANGES** | + | # Numbers |
| + | 3D打印 3D打印 [[san1-D da3yin4]] /to 3D print; 3D printing/ | ||
| + | 95後 95后 [[jiu3wu3hou4]] /people born between 1995-01-01 and 1999-12-31/ | ||
| + | 996 996 [[jiu3jiu3liu4]] /9am–9pm, six days a week (work schedule)/ | ||
| + | </ | ||
| - | (Summary: (1) Get rid of "also written" | + | As a general rule of thumb: |
| - | + | - When writing the Hanzi fields, non-Chinese characters should stay the same. | |
| - | (THE VARIANT RULES ABOVE CAN BE DELETED IF AND WHEN THESE CHANGES ARE ACCEPTED.) | + | - When writing the pinyin, for English letters use the same letters in the pinyin |
| - | (Also, the following notes can be tidied up and edited to remove references to " | ||
| - | Regarding "also written..." | + | ==== Technical details, and the use of {} ==== |
| - | According to our wiki, there are two kinds of variants. | + | When parsing the traditional and simplified fields, Hanzi and numbers |
| - | https://cc-cedict.org/ | + | |
| - | 1) Where the less common form is relatively common (> 20% of the frequency | + | The pinyin |
| - | 2) Where the less common form is much less common (< 20% of the frequency | + | It is a requirement that the number |
| - | For the first type, the def of the less common form should look like this (according to the wiki): | + | < |
| - | < | + | 兡 兡 [[bai3ke4]] |
| + | </ | ||
| - | And for the second type, the def of the less common form should | + | where a single character corresponds to two syllables. In these cases, {}'s may be used to manually group a section, so we can write |
| - | < | + | |
| - | In practice, what has been happening in recent years is this: | + | < |
| + | 兡 兡 [[{bai3ke4}]] /.../ | ||
| + | </ | ||
| - | 1. We have been ignoring the "also written ..." | + | which indicates |
| - | 2. With variants, | + | Another problem arises for entries with a number with multiple digits. Consider a hypothetical entry such as |
| - | a) if it's a full variant (i.e. exactly the same definition), | + | < |
| + | 11 11 [[shi2yi1]] | ||
| + | </ | ||
| - | b) if it's a partial variant (i.e. only some of the senses of one form apply to the other form) we use | + | which implies that the first 1 is pronounced " |
| - | < | + | |
| - | Part of the rationale for these changes is this: It's a hassle to check whether entries satisfy the "20% criteria", | + | < |
| + | 21 21 [[er4shi2yi1]] /twenty one/ | ||
| + | </ | ||
| - | Using the Editor website' | + | which poses a different problem - we have two Hanzi sections but three pinyin sections due to the extra "shi2" |
| - | One idea that I've had in mind for a while is to clean up all these by | + | < |
| + | {21}三體綜合症 {21}三体综合症 [[{21} san1ti3 zong1he2zheng4]] /trisomy; Down's syndrome/ | ||
| + | </ | ||
| - | a) rewriting | + | Note this is different from the 996 example above, which is treated as 3 digits |
| - | b) regularizing the format of the " | + | To check whether an entry will be parsed correctly, you can use this tool: |
| - | + | https://cc-cedict.org/editor/editor.php? | |
| - | + | ||
| - | + | ||
| - | ===== Romanization of foreign languages ===== | + | |
| - | + | ||
| - | When transcribing foreign words in definitions, please | + | |
| - | * Japanese: [[http://en.wikipedia.org/wiki/Hepburn_romanization|Modified Hepburn]] | + | |
| - | * Korean: [[http:// | + | |
| - | + | ||
| - | If an alternative romanization method is more popular for a certain word, that version can be added as an additional translation. | + | |
syntax_v2.1771363785.txt.gz · Last modified: by kbaiko
