{"id":569,"date":"2013-12-23T23:02:24","date_gmt":"2013-12-23T22:02:24","guid":{"rendered":"http:\/\/www.nobugs.org\/blog\/?p=569"},"modified":"2013-12-23T23:02:24","modified_gmt":"2013-12-23T22:02:24","slug":"reading","status":"publish","type":"post","link":"https:\/\/www.nobugs.org\/blog\/archives\/2013\/12\/23\/reading\/","title":{"rendered":"Reading++"},"content":{"rendered":"<p>A while ago, I wrote an emacs &#8216;reading mode&#8217;.  It highlights a single sentence at a time, fading the rest of the text into a gentle grey, and a keypress moves onto the next sentence.  It retains the familiarity and consistency of normal text layout, but provides additional cues about the extent of the current sentence.<\/p>\n<p>Tonight, I played with the idea of including smarter parsing into this reading mode.  The <a href=\"http:\/\/www-nlp.stanford.edu\/software\/lex-parser.shtml\">Stanford Parser<\/a> parses english sentences.  It tells you about the grammatical structure (noun phrases, verb phrases, etc) and dependencies between words.  This is just about enough to do what I had in mind &#8211; a &#8220;superfluous word&#8221; highlighter.  The whole world is absolutely packed full of so many documents with wholly unnecessary words.  Ideally, I&#8217;d like to just delete the pointless words.  But it&#8217;s rare for a word to be completely devoid of semantic meaning.  So, my compromise is just to highlight those decorative words &#8211; adjectival and adverbial modifiers &#8211; which are commonly guilty.<\/p>\n<p>Here&#8217;s some examples, not completely perfect, but useful nonetheless:<\/p>\n<pre>\r\nI <span style=\"color:red\">REALLY<\/span> want some <span style=\"color:red\">SUPER<\/span> <span style=\"color:red\">TASTY<\/span> chocolate.\r\nThe system has been <span style=\"color:red\">VERY<\/span> <span style=\"color:red\">CAREFULLY<\/span> designed, and will cope admirably with all \r\n  <span style=\"color:red\">CONCEIVABLE<\/span> combinations of circumstances.\r\nI wanted to leave my <span style=\"color:red\">SMALL<\/span> pond and see <span style=\"color:red\">HOW<\/span> I'd fare in a <span style=\"color:red\">BIG<\/span> one, with some \r\n  of the <span style=\"color:red\">BEST<\/span> developers in the world.\r\nYou define <span style=\"color:red\">HOW<\/span> you want your data to be structured <span style=\"color:red\">ONCE<\/span>, <span style=\"color:red\">THEN<\/span> you can \r\n  use <span style=\"color:red\">SPECIAL<\/span> <span style=\"color:red\">GENERATED<\/span> source code to <span style=\"color:red\">EASILY<\/span> write and read your <span style=\"color:red\">STRUCTURED<\/span> data.\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>A while ago, I wrote an emacs &#8216;reading mode&#8217;. It highlights a single sentence at a time, fading the rest of the text into a gentle grey, and a keypress moves onto the next sentence. It retains the familiarity and consistency of normal text layout, but provides additional cues about the extent of the current [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-569","post","type-post","status-publish","format-standard","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/www.nobugs.org\/blog\/wp-json\/wp\/v2\/posts\/569","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.nobugs.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.nobugs.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.nobugs.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.nobugs.org\/blog\/wp-json\/wp\/v2\/comments?post=569"}],"version-history":[{"count":4,"href":"https:\/\/www.nobugs.org\/blog\/wp-json\/wp\/v2\/posts\/569\/revisions"}],"predecessor-version":[{"id":573,"href":"https:\/\/www.nobugs.org\/blog\/wp-json\/wp\/v2\/posts\/569\/revisions\/573"}],"wp:attachment":[{"href":"https:\/\/www.nobugs.org\/blog\/wp-json\/wp\/v2\/media?parent=569"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.nobugs.org\/blog\/wp-json\/wp\/v2\/categories?post=569"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.nobugs.org\/blog\/wp-json\/wp\/v2\/tags?post=569"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}