{"id":1094,"date":"2015-04-16T16:45:05","date_gmt":"2015-04-16T16:45:05","guid":{"rendered":"https:\/\/www.courses.tegabrain.com\/SS15\/?p=1094"},"modified":"2018-09-04T17:06:54","modified_gmt":"2018-09-04T17:06:54","slug":"node-functions-cool-things-with-text","status":"publish","type":"post","link":"https:\/\/www.courses.tegabrain.com\/SS15\/?p=1094","title":{"rendered":"node functions ~ cool things with text"},"content":{"rendered":"<p><em>I used one of my favorite poems Slowdance by Matthew Dickman. <\/em><\/p>\n<p>I thought this exercise was really amazing to see how it can transform text in an interesting way and how it changes language. \u00a0Really liked this exercise.<\/p>\n<p>&nbsp;<\/p>\n<p><em>First, I used the every other example code.<\/em><strong>Here was the result:<\/strong><\/p>\n<p>gungho:SSHW emilylocke$ node everyother.js text.txt<\/p>\n<p>More putting man the<\/p>\n<p>more a Year\u2019s of and<\/p>\n<p>we the to<\/p>\n<p>with exquisite A dance the and room at end the while person love gone bring car<\/p>\n<p>because begun rain would their<\/p>\n<p>if part us wet. slow<\/p>\n<p>to the home, knock out the Two<\/p>\n<p>rocking and like buoy. extravagant. little An bottle whiskey. a like Your resting his your moving his<\/p>\n<p>Your along spine. hips like cotton<\/p>\n<p>and begin think how the in sky dead. my<\/p>\n<p>is to body dance. Unchained<\/p>\n<p>Stairway Heaven, slow All life made Small cruel. made plans. never I my I my<\/p>\n<p>The dance care. all like<\/p>\n<p>before turn Like held the<\/p>\n<p>of brother. slow of<\/p>\n<p>Two in middle the When dance him, of great he absolutely<\/p>\n<p>and he to me I on foot we both<\/p>\n<p>I that of will first the will<\/p>\n<p>The dance what\u2019s come the dance insomnia across floor bath<\/p>\n<p>When woman sleeping<\/p>\n<p>stands in bathroom, her the dance ritual being<\/p>\n<p>into sink. is one save<\/p>\n<p>because is need be<\/p>\n<p>I\u2019ve you. loved I\u2019ve<\/p>\n<p>the yard. the wearing shear dress in million<\/p>\n<p>comes me an chandelier come life, take hand mine. spin out bring in. is almond<\/p>\n<p>in dark dance. is we be right Scrapping joy. haiku honey. orange orangutang dance.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Then I tried reversing:\u00a0<\/strong><\/p>\n<p>gungho:SSHW emilylocke$ node reverse.js text.txt<\/p>\n<p>.ecnad wols gnatugnaro dna egnaro ehT .yenoh dna ukiah ehT .yoj rof<\/p>\n<p>gnipparcS .won thgir gniod eb dluohs ew tahw si tI<\/p>\n<p>.ecnad wols krad eht ni<\/p>\n<p>evorg dnomla eht si sihT .ni reh gnirb dna<\/p>\n<p>tuo reh nips I .enim ni dnah reh ekat I<\/p>\n<p>,efil ot emoc ylneddus reilednahc dexes-revo na ekil em drawot semoc<\/p>\n<p>sdaeb noillim a ni derevoc<\/p>\n<p>sserd etihw raehs a gniraew regnarts eht nehW .dray tnorf eht<\/p>\n<p>dewom ev\u2019I .uoy devol ev\u2019I .uoy truh ev\u2019I<\/p>\n<p>.devas eb ot deen on si ereht esuaceb<\/p>\n<p>su evas ot eno on si erehT .knis eht otni<\/p>\n<p>tips gnieb si lautir fo ecnad wols eht ,hteet reh gnihsurb<\/p>\n<p>,moorhtab eht ni dekan sdnats<\/p>\n<p>htiw gnipeels m\u2019I namow eht nehW<\/p>\n<p>.retaw htab ekil roolf eht ssorca gniruop<\/p>\n<p>ainmosni fo ecnad wols eht dna<\/p>\n<p>emoc ot s\u2019tahw fo ecnad wols ehT<\/p>\n<p>.reffus lliw rehto eht dna tsrif eid lliw su fo eno taht wonk I<\/p>\n<p>,gnidael htob era ew esuaceb toof sih no pets I ro<\/p>\n<p>em pid ot snrut eh nehw dna<\/p>\n<p>,namuh yletulosba si eh ,sevol taerg ym fo eno<\/p>\n<p>,mih htiw ecnad I nehW .moor eht fo elddim eht ni nem owT<\/p>\n<p>.sgnilbis fo ecnad wols ehT .rehtorb ym fo<\/p>\n<p>smra eht ni dleh gnieb ekiL .ruof nrut yeht erofeb<\/p>\n<p>nerdlihc ekil ssendnik lla s\u2019tI .erac t\u2019nseod ecnad wols ehT<\/p>\n<p>.eniw ym knard I .doof ym eta I .devirra reven I<\/p>\n<p>.snalp ym edam I .leurc dna<\/p>\n<p>llamS .sekatsim edam ev\u2019I<\/p>\n<p>efil ym llA .ecnad wols droc-rewop ,nevaeH ot yawriatS<\/p>\n<p>,ydoleM deniahcnU ehT .ecnad wols ydob ruoy ot gniklat si<\/p>\n<p>ydob ym ehT .daed era<\/p>\n<p>yks eht ni srats eht lla woh tuoba kniht ot nigeb uoy dna<\/p>\n<p>nikpan nottoc a ekil gnidlofnu<\/p>\n<p>spih reH .enips reh gnola sdnah ruoY<\/p>\n<p>.kcen sih pu gnivom htaerb ruoy ,redluohs sih no<\/p>\n<p>gnitser daeh ruoY .gnitaehc ekil elttil a s\u2019tI<\/p>\n<p>.yeksihw fo elttob ytpme nA .cisum elttil A<\/p>\n<p>.tnagavartxe gnihtoN .youb a ekil htrof dna kcab gnikcor<\/p>\n<p>elpoep owT .krap eht fo tuo ti kconk ot ,emoh gnineve eht gnirb ot<\/p>\n<p>ecnad wols A .tew tog su fo trap yna fi<\/p>\n<p>traeh rieht kaerb dluow dna niar ot nugeb s\u2019ti esuaceb<\/p>\n<p>dnuora rac eht gnirb ot<\/p>\n<p>enog sah evol ew nosrep eht elihw ,ytrap eht fo<\/p>\n<p>dne eht ta ,elbat moor gninnid dna hcuoc eht neewteb<\/p>\n<p>ecnad wols A .sregnarts etisiuqxe yllaer htiw<\/p>\n<p>ecnad ot ytinutroppo eht deen ew<\/p>\n<p>,agoy dna trugoy fo noituloser s\u2019raeY weN a naht erom<\/p>\n<p>,noom eht no nam rehtona gnittup naht eroM<\/p>\n<p><strong>Here is Flesch:<\/strong><\/p>\n<p>gungho:SSHW emilylocke$ node flesch.js text.txt<\/p>\n<p>Total Syllables: 534<\/p>\n<p>Total Words\u00a0 \u00a0 : 418<\/p>\n<p>Total Sentences: 39<\/p>\n<p>Flesch Index \u00a0 : 87.87877008955958<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I used one of my favorite poems Slowdance by Matthew Dickman. I thought this exercise was really amazing to see how it can transform text in an interesting way and how it changes language. \u00a0Really liked this exercise. &nbsp; First, I used the every other example code.Here was the result: gungho:SSHW emilylocke$ node everyother.js text.txt [&hellip;]<\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.courses.tegabrain.com\/SS15\/index.php?rest_route=\/wp\/v2\/posts\/1094"}],"collection":[{"href":"https:\/\/www.courses.tegabrain.com\/SS15\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.courses.tegabrain.com\/SS15\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.courses.tegabrain.com\/SS15\/index.php?rest_route=\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/www.courses.tegabrain.com\/SS15\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1094"}],"version-history":[{"count":2,"href":"https:\/\/www.courses.tegabrain.com\/SS15\/index.php?rest_route=\/wp\/v2\/posts\/1094\/revisions"}],"predecessor-version":[{"id":1160,"href":"https:\/\/www.courses.tegabrain.com\/SS15\/index.php?rest_route=\/wp\/v2\/posts\/1094\/revisions\/1160"}],"wp:attachment":[{"href":"https:\/\/www.courses.tegabrain.com\/SS15\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1094"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.courses.tegabrain.com\/SS15\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1094"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.courses.tegabrain.com\/SS15\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1094"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}