Skip to content
UniKit

Chinese sentence shuffler

Split a Chinese paragraph into sentences at punctuation and shuffle them: the draw is seed-driven, so the same seed and text always give the same order, with the sentence count reported. The shuffled result also becomes an interactive order restore drill: click two cells to swap and the position-by-position check against the original runs with live in-place, swap and elapsed counters.

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

Order restore drill

The cells below hold the shuffled fragments: click one to select it, then click another to swap them until the order matches the original. The check compares position by position, so the result is real.

Paste some text (multi-line is fine) to build the order restore drill.
Click any cell to start; units, swaps and elapsed time are all counted live

Keyboard: 1–9 select or swap that cell, H for a hint, Z to undo, R to restart this drill.

Paste some text (multi-line is fine) to build the order restore drill.

Shuffled result

Chinese sentences are re-joined without extra spaces; in line mode each line stays a line. Only the order changes, never the characters.

Paste some text (multi-line is fine) to see the shuffled order

What this tool does

  • Shuffle the sentence order of a Chinese paragraph to build a sentence-ordering exercise, with the shuffled order as the answer key.
  • While drafting, pin the first sentence and look at which arrangement of the remaining sentences reads best.
  • Run a word-order experiment: the same text with different seeds gives different orders, so you can compare how readable the same batch of sentences is.
  • Build a sentence-ordering exercise and grade it on the spot: the order restore drill on this page uses that shuffled result as its material — click two cells to swap, and the in-place count, swap count and elapsed time are all counted live.

Example

Input

春天来了。柳树发芽了!孩子们跑到河边放风筝。风筝越飞越高,笑声传得很远。

Output

春天来了。风筝越飞越高,笑声传得很远。柳树发芽了!孩子们跑到河边放风筝。

Real output with the defaults (seed unikit, first unit pinned): four sentences are cut, the first stays put and three units change position. The seed value comes from FNV-1a over "unikit" (4285293035), so reloads and other devices give the same order.

Frequently asked questions

How are the sentences cut?

Only at end punctuation: 。!?!?…;; — eight characters — and the mark stays with the sentence it closes (trailing quotes and brackets come along). So 甲。乙!丙? becomes three units. A plain English full stop "." does not cut, which keeps 3.14 and Mr. intact; use line breaks when you want to split English text.

When does it switch to shuffling lines?

When the text contains no end punctuation but does contain several lines, it shuffles lines instead, one line per unit. As soon as one end mark cuts the text into two or more sentences, sentence mode wins and newlines are ignored.

Is the result reproducible?

Yes. Randomness comes from a built-in mulberry32 seeded PRNG. The seed text defaults to "unikit" and can be anything you type (the number 42 and the text "42" are equivalent). The same text with the same seed always produces the same order, across reloads and devices.

What does "pin the first unit" do?

When checked, the first sentence (or line) stays in place and only the rest is shuffled — in Chinese prose the opening sentence often carries the time, place or topic anchor. Uncheck it to shuffle everything; the moved-units count then includes the first unit too. The count compares each unit with its original position.

Is my text uploaded?

No. Cutting, shuffling and counting all run in your browser, with no network requests and nothing written to local storage.

How does the order restore drill decide anything?

The cells are exactly the shuffled result, and each cell remembers its position in the original text. Click one cell to select it, click another to swap; the page compares position by position against the original, and repeated sentences are matched in order of appearance, so identical fragments cannot be confused. Swaps, cells in place, swaps without progress and elapsed time all come from your real clicks.

What if the shuffle happens to equal the original order?

With very few units (two sentences, first one pinned) the draw can keep the order unchanged. The drill then applies one deterministic rotation first, otherwise you would open an already-finished puzzle; the page says so, and the rotation only moves units, never edits text.

Is this a text tool or a game?

It is a text tool: the real capability is cutting Chinese text at end punctuation and shuffling it with a seed, and the result is still printed unchanged in the shuffled-result card. The site capability list classifies its UI as a game, so a genuinely interactive restore drill was added instead of fake numbers: with no clicks the swap count is 0, and "solved" only becomes true when real swaps make the order match the original.

Keywords:sentence shuffleorder restore drill

Related tools