{"id":1557,"date":"2015-11-04T14:27:39","date_gmt":"2015-11-04T14:27:39","guid":{"rendered":"http:\/\/mikew.ca\/wp\/?p=1556"},"modified":"2025-01-12T19:39:08","modified_gmt":"2025-01-12T19:39:08","slug":"context-driven-parsing","status":"publish","type":"post","link":"https:\/\/mikew.ca\/blog\/?p=1557","title":{"rendered":"Context driven parsing"},"content":{"rendered":"\n<p>I thought I&#8217;d record this here, because it&#8217;s such a great example of why context is important when recognizing text&#8230;<\/p>\n\n\n\n<p>Consider this:<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"320\" height=\"65\" src=\"https:\/\/mikew.ca\/blog\/wp-content\/uploads\/2015\/11\/13-december.jpg\" alt=\"\" class=\"wp-image-2907\" srcset=\"https:\/\/mikew.ca\/blog\/wp-content\/uploads\/2015\/11\/13-december.jpg 320w, https:\/\/mikew.ca\/blog\/wp-content\/uploads\/2015\/11\/13-december-300x61.jpg 300w\" sizes=\"auto, (max-width: 320px) 100vw, 320px\" \/><\/figure>\n\n\n\n<p>I suspect almost anyone who sees that image would parse it as a date, that is &#8220;<em><b>13 Dec<\/b><\/em>ember&#8221;. Of course, once you see it in context, at least the Tim Horton&#8217;s regulars would know it said &#8220;<em><b>B<\/b><\/em>lack <em><b>Dec<\/b><\/em>af&#8221;.<\/p>\n\n\n\n<figure class=\"wp-block-image aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"240\" height=\"320\" src=\"https:\/\/mikew.ca\/blog\/wp-content\/uploads\/2015\/11\/black-decaf.jpg\" alt=\"\" class=\"wp-image-2908\" srcset=\"https:\/\/mikew.ca\/blog\/wp-content\/uploads\/2015\/11\/black-decaf.jpg 240w, https:\/\/mikew.ca\/blog\/wp-content\/uploads\/2015\/11\/black-decaf-225x300.jpg 225w\" sizes=\"auto, (max-width: 240px) 100vw, 240px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>I thought I&#8217;d record this here, because it&#8217;s such a great example of why context is important when recognizing text&#8230; Consider this: I suspect almost anyone who sees that image would parse it as a date, that is &#8220;13 December&#8221;. Of course, once you see it in context, at least the Tim Horton&#8217;s regulars would [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-1557","post","type-post","status-publish","format-standard","hentry","category-other"],"_links":{"self":[{"href":"https:\/\/mikew.ca\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1557","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mikew.ca\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mikew.ca\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mikew.ca\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mikew.ca\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1557"}],"version-history":[{"count":1,"href":"https:\/\/mikew.ca\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1557\/revisions"}],"predecessor-version":[{"id":2909,"href":"https:\/\/mikew.ca\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1557\/revisions\/2909"}],"wp:attachment":[{"href":"https:\/\/mikew.ca\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1557"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mikew.ca\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1557"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mikew.ca\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1557"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}