/ ~hypervariety /

Text (5447 bytes)
Saved 2 months ago
kk_chunks
Push esc to read the page. Hold Ctrl/Alt/Opt to edit elements on the page.
Or drag a box to create new ones.
Sign in and out   Your home page ~ / Your files

A String Chunking Tool

KreativeKorp recently told me about a Javascript library to break strings into chunks. I liked it, but wanted to change the syntax so it was more english-like.

Here is a field called “text”:

Wrong will be right, when Aslan comes in sight, At the sound of his roar, sorrows will be no more, When he bares his teeth, winter meets its death, And when he shakes his mane, we shall have spring again.

Here is another style of chunk expression to be evaluated, along with its KreativeKorp re-interpretation:

word 3 of line 3 of text

And this is the result of the KreativeKorp library call:

Some more to try:

Editing is enabled
Learn about instructions Hide the box