CONSTRAINED WRITING

By using Frank Sinatra’s New York lyrics as a text file, I’ve manually performed Erasure(artform) constrained writing technique but by changing it with “replace”. I’ve created a webpage with the results using some combination of HTML, CSS and JavaScript. I’ve included the text file and loadStrings() from my JS file. By using the method String.prototype.replace() I’ve returned a new string with the word New York and replace with my town Istanbul. I’ve include interactive elements by looking at the text file, count the words and depending how frequently they are used draw them randomly on to the canvas in size order. In this case, the word “New York“ was the most frequently used string so it has the bigger font size.

ny.gif

You can reach the code below;

Github

Glitch

During this project, I’ve hard time by using above method because it wasn’t getting p(my text) with the strings. So I’ve used p.toString() to get the words from my variable.

My other struggle was not being able to use join(p”,<br/>”) function to get the lyrics lines in the order. The line of code i’ve used was;

createP(p.toString().replace(regex,”Istanbul“));