Skip to content
UniKit

Traditional Chinese line splitter

Split text line by line into lines that contain traditional Chinese characters and lines that do not. Each line is converted from traditional to simplified with the OpenCC dictionary; lines that change are flagged. Blank lines can be kept or dropped, and line and character counts are reported.

Runs in your browserEvery computation happens in your browser — your data never leaves this device.

Text (one line per entry)

Judged line by line: if converting the whole line from traditional to simplified changes it, the line is counted as containing traditional characters. The output keeps your original wording.

Split result

Both groups keep the original order and wording, so you can copy them separately.

Paste text to see the split result

What this tool does

  • Split mixed text by line: lines that contain traditional characters end up in one group, the rest in another, so you can handle them separately
  • Check which lines of a manuscript, subtitle or data sheet are written in traditional characters before deciding to convert them
  • Take stock before translation or cleaning: how many lines and how many characters differ between the two scripts

Example

Input

發展中國家的軟件工程師
软件工程师
後面还有里約熱內盧

Output

發展中國家的軟件工程師
後面还有里約熱內盧

Lines 1 and 3 become "发展中国家的软件工程师" and "后面还有里约热内卢" when converted, so they are flagged; line 2 is unchanged. The output keeps the original wording: 2 traditional lines, 9 differing characters.

Frequently asked questions

How is "contains traditional characters" decided?

Each whole line is converted from traditional to simplified with the OpenCC dictionary (opencc-js t → cn, the t2cn/t2s direction). If the conversion differs from the original line, the line is flagged. This is a dictionary-based rule, not a per-character script property: single-character changes (體 → 体) and phrase-level changes (發展 → 发展) are both caught, and you can inspect the converted text of every line.

Can it miss or over-flag lines?

Yes, the judgement is a heuristic. Characters that look the same in both scripts (后, 里) are never counted as traditional; entries that the OpenCC dictionary keeps identical (for example 著手 stays 著手) are missed; variant characters and Japanese/Korean kanji usage (say 漢 in a Japanese text) may be flagged. Vocabulary differences depend on the dictionary: 軟件 → 软件 is caught, 硬體 → 硬体 is only partially converted.

Does the split convert my text to simplified?

No. Both groups keep exactly the lines you pasted, in the original order and wording; the tool only groups and counts. Use the traditional/simplified converter when you actually want converted text.

How are blank lines handled?

Blank lines (whitespace only) are dropped by default and counted separately. With "Keep blank lines" enabled they stay in the "lines without traditional characters" group, in their original order, because a blank line contains no traditional characters.

How much text can it handle, and is anything uploaded?

Up to 50,000 characters per run; longer input asks you to split it. Detection and grouping run entirely in your browser, with no network calls and no storage of your text.

Keywords:traditional Chinese splittertraditional Chinese detectoropencc

Related tools