Cloverleaf

Digging short-cuts from texts to texts

Cloverleaf is a tool to navigate a set of text. Through generated short-cuts, it is meant to interrupts the linearity of a text. The result is a collage of excerpts and aims to free unexpected reading paths. The tool can be used to stitch various voices together in a non-hierarchical manner, giving off hybrid constructions where common points and divergences can co-exist.


In detail:

For two texts in a set of text following an index order, let’s consider a ‘preceding text’ and its succeeding. In a first place, the function bridge() will look for the first identical word occurring in both texts (excluding stop words). Let’s name the position (index) of this word ‘i’ for the preceding text and ‘j’ for the succeeding text.

example: text, index 0: “Strawberries don’t grow tasty (i) in the Netherlands.” text, index 1: “Pineapple is very tasty (j) with salt (i) and chilli powder.” text, index 2: “Blocks of salt (j) distract cows (i).” text, index 3: “There was many field with cows (j) in this area.” Since every text, within a given set of at least four texts, will alternatively take the ‘preceding’ and the ‘succeeding’ position, each text will hold a word indexed as ‘i’ and a word indexed as ‘j’: marking the identical words occurring between a text and its succeeding. These marks will then determine the start and the end of each excerpt, and open the ‘shortcut’ aforementioned. As a result, the preceding text will be printed from its index ‘j’—attributed formerly when this text was in a ’succeeding’ position—until ‘i’, its common word with its current succeeding text. The function will loop until the last two texts of the set (in the index order). TEXT 1 xxxxxxxxxJooooooooooooIxxxxxxxxxxxxx TEXT 2 xxxxxxxxxxxxxxxxxJooooooooooooIxxxxxxxxxx TEXT 3 xxxxxxxxxxxJoooooooIxxxxxxxxxxxxxxxx TEXT 4 xxxxxxJooooooooooooooooIxxxxxxxxxxxxxx o = printed text x = rejected text J = same word's index preceding text I = same word's index in suceeding text In the case no match is found between two texts, the text in succeeding position will be printed from its first word to its last.

// Renders the text boxes {% for sentence in corpus %} {% endfor %} // Renders the result word by word // If a words index is in "highlights", then we give it the "highlight" class
{{result}}