{"id":1092,"date":"2015-04-16T16:20:42","date_gmt":"2015-04-16T16:20:42","guid":{"rendered":"https:\/\/www.courses.tegabrain.com\/SS15\/?p=1092"},"modified":"2018-09-04T17:06:54","modified_gmt":"2018-09-04T17:06:54","slug":"text-manipulation-the-raven","status":"publish","type":"post","link":"https:\/\/www.courses.tegabrain.com\/SS15\/?p=1092","title":{"rendered":"Text Manipulation &#8211; The Raven"},"content":{"rendered":"<p>\u2014\u2014\u2014\u2014EVERY OTHER WORD \u2014\u2014\u2014\u2014<\/p>\n<p>The Raven &#8211; Edgar Allan Poe<\/p>\n<p>Once a dreary, I weak weary,<br \/>\nOver a and volume forgotten \u2013<br \/>\nWhile nodded, napping, there a of one rapping, at chamber \u2013<br \/>\n&#8220;&#8216;Tis visitor,&#8221; muttered, at chamber \u2013<br \/>\nOnly and more.&#8221;<\/p>\n<p>Ah, I it in bleak each dying wrought ghost the I the \u2013 I sought borrow<br \/>\nFrom books of \u2013 for lost \u2013<br \/>\nFor rare radiant whom angels Lenore here evermore.<\/p>\n<p>And silken, uncertain of purple me filled with terrors felt that to the of heart, stood some entreating at chamber \u2013<br \/>\nSome visitor entrance my door; it and more.&#8221;<\/p>\n<p>Presently soul stronger; then longer,<br \/>\n&#8220;Sir,&#8221; I, Madam, your I the is was and gently came so you tapping, at chamber I was I you&#8221; here opened the \u2013<br \/>\nDarkness and more.<\/p>\n<p>Deep that peering, I there fearing,<br \/>\nDoubting, dreams mortal dared dream the was and stillness no the word spoken the word, I and echo back word, \u2013<br \/>\nMerely and more.<\/p>\n<p>Back the turning, my within burning,<br \/>\nSoon I a somewhat than said &#8220;surely is at window me then, thereat and mystery \u2013<br \/>\nLet heart still moment this explore; the and more!&#8221;<\/p>\n<p>Open I the when, many flirt flutter,<br \/>\nIn stepped stately of saintly of the obeisance he; a stopped stayed with of or perched my door upon bust Pallas above chamber \u2013<br \/>\nPerched, sat, nothing this bird my fancy smiling,<br \/>\nBy grave stern of countenance wore,<br \/>\n&#8220;Though crest shorn shaven, I &#8220;art no grim ancient wandering the shore me thy name on Night&#8217;s shore!&#8221;<br \/>\nQuoth Raven I this fowl hear so its little \u2013 relevancy we help that living being<br \/>\nEver was with bird his door or upon sculptured above chamber such as the sitting on placid spoke one as his in one he outpour.<br \/>\nNothing then uttered not feather he \u2013<br \/>\nTill scarcely than &#8220;Other have before the he leave as hopes flown the said at stillness by so spoken,<br \/>\n&#8220;Doubtless,&#8221; I, it is only and from unhappy whom Disaster<br \/>\nFollowed and faster his one bore the of Hope melancholy bore<br \/>\nOf \u2013 the still my fancy smiling,<br \/>\nStraight wheeled cushioned in of and and upon velvet I myself linking<br \/>\nFancy fancy, what ominous of \u2013<br \/>\nWhat grim, ghastly, and bird yore<br \/>\nMeant croaking I engaged guessing, no expressing<br \/>\nTo fowl fiery now into bosom&#8217;s and I divining, my at reclining<br \/>\nOn cushion&#8217;s lining the gloated whose violet with lamp-light o&#8217;er,<br \/>\nShe press, nevermore!<\/p>\n<p>Then, the grew perfumed an censer<br \/>\nSwung Seraphim foot-falls on tufted I &#8220;thy hath thee by angels hath thee<br \/>\nRespite respite nepenthe, thy of oh this nepenthe forget lost the &#8220;Nevermore.&#8221;<\/p>\n<p>&#8220;Prophet!&#8221; I, of \u2013 still, bird devil! Tempter or tempest thee ashore,<br \/>\nDesolate all on desert enchanted this by haunted tell truly, implore there is balm Gilead? tell \u2013 me, implore!&#8221;<br \/>\nQuoth Raven said &#8220;thing evil prophet if or that that above \u2013 that we adore this with laden within distant shall a maiden the name \u2013<br \/>\nClasp rare radiant whom angels Lenore.&#8221;<br \/>\nQuoth Raven that our in bird fiend!&#8221; shrieked, \u2013<br \/>\n&#8220;Get back the and Night&#8217;s shore!<br \/>\nLeave black as token that thy hath my unbroken! quit bust my thy from my and thy from my the &#8220;Nevermore.&#8221;<\/p>\n<p>And Raven, flitting, is still sitting<br \/>\nOn pallid of just my door;<br \/>\nAnd eyes all seeming a that dreaming,<br \/>\nAnd lamp-light him throws shadow the my from that that floating the be \u2013<\/p>\n<p>\u2014\u2014\u2014\u2014FLESCH INDEX\u2014\u2014\u2014\u2014<\/p>\n<p>Andrews-MacBook-Pro-3:SSHW MrPC$ node flesch.js raven.txt<br \/>\nTotal Syllables: 1560<br \/>\nTotal Words\u00a0\u00a0\u00a0 : 1072<br \/>\nTotal Sentences: 61<br \/>\nFlesch Index\u00a0\u00a0 : 65.88568265231221<\/p>\n<p>\u2014\u2014\u2014\u2014SEARCH\u2014\u2014\u2014\u2014<br \/>\nThis is case sensitive!<\/p>\n<p>Andrews-MacBook-Pro-3:SSHW MrPC$ node search.js raven.txt raven<br \/>\nAndrews-MacBook-Pro-3:SSHW MrPC$ node search.js raven.txt Raven<br \/>\nRaven of<br \/>\n1<br \/>\nRaven wandering<br \/>\n2<br \/>\nRaven &#8220;Nevermore.&#8221;<\/p>\n<p>Much<br \/>\n3<br \/>\nRaven still<br \/>\n4<br \/>\nRaven &#8220;Nevermore.&#8221;<\/p>\n<p>&#8220;Prophet!&#8221;<br \/>\n5<br \/>\nRaven &#8220;Nevermore.&#8221;<\/p>\n<p>&#8220;Prophet!&#8221;<br \/>\n6<br \/>\nRaven &#8220;Nevermore.&#8221;<\/p>\n<p>&#8220;Be<br \/>\n7<br \/>\nRaven &#8220;Nevermore.&#8221;<\/p>\n<p>And<br \/>\n8<\/p>\n<p><strong>Findings:<\/strong><\/p>\n<p>For this assignment, I chose to analyze Edgar Allan Poe&#8217;s &#8220;The Raven&#8221;. I chose this poem because I was curious to see how the language\/writing would look when analyzed and manipulated. I ran the text through the &#8220;everyother&#8221;, &#8220;flesch&#8221;, and &#8220;search&#8221; scripts.<\/p>\n<p>The &#8220;every other &#8221; program produced interesting results, an entirely new poem! The interesting thing is, since the chosen text is not pros any form of manipulation could be considered art! So after the txt was manipulated, a whole new work was produced and at points comical.<\/p>\n<p>The next piece of code was the flesch test. This test produced results that you would expect&#8230; nothing out of the ordinary there.<\/p>\n<p>Finally the search script, searching for the word Raven. The important thing to note here was that the search word is case sensitive! (talked about in class &#8216;God vs god&#8217;)<\/p>\n<p>I&#8217;d be interested to take some of the code examples and modify them to produce more interesting results. I&#8217;d like to change the &#8220;every other&#8221; code to maybe have several functions within that are chosen randomly upon running. Maybe one to give you every other word, one to give you words on either side of periods, etc&#8230; you could run text through the program and create poems or interesting works of art. I thought this was interesting and fun, as well as potentially very useful.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u2014\u2014\u2014\u2014EVERY OTHER WORD \u2014\u2014\u2014\u2014 The Raven &#8211; Edgar Allan Poe Once a dreary, I weak weary, Over a and volume forgotten \u2013 While nodded, napping, there a of one rapping, at chamber \u2013 &#8220;&#8216;Tis visitor,&#8221; muttered, at chamber \u2013 Only and more.&#8221; Ah, I it in bleak each dying wrought ghost the I the \u2013 [&hellip;]<\/p>\n","protected":false},"author":8,"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\/1092"}],"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\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.courses.tegabrain.com\/SS15\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1092"}],"version-history":[{"count":1,"href":"https:\/\/www.courses.tegabrain.com\/SS15\/index.php?rest_route=\/wp\/v2\/posts\/1092\/revisions"}],"predecessor-version":[{"id":1093,"href":"https:\/\/www.courses.tegabrain.com\/SS15\/index.php?rest_route=\/wp\/v2\/posts\/1092\/revisions\/1093"}],"wp:attachment":[{"href":"https:\/\/www.courses.tegabrain.com\/SS15\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1092"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.courses.tegabrain.com\/SS15\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1092"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.courses.tegabrain.com\/SS15\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1092"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}