{"id":32,"date":"2017-04-12T12:00:00","date_gmt":"2017-04-12T12:00:00","guid":{"rendered":"https:\/\/eric.tedjamulia.com\/blog\/dictionary-number-experiment\/"},"modified":"2017-04-12T12:00:00","modified_gmt":"2017-04-12T12:00:00","slug":"dictionary-number-experiment","status":"publish","type":"post","link":"https:\/\/eric.tedjamulia.com\/blog\/dictionary-number-experiment\/","title":{"rendered":"Some completely unnecessary dictionary math"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Here is a little dictionary experiment: give every letter a number, with A equal to 1 and Z equal to 26, and add up each word. I wanted to see which words landed on multiples of 26.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The page carries a big word list right in the HTML. JavaScript walks through it, skips entries containing a slash, and totals the character values. Then it repeatedly subtracts 26 and represents each chunk with a Z. Words whose total divides evenly by 26 get printed, so the output ends up looking like a long list of words followed by strings of Zs.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">There is no grand mathematical discovery hiding in here. It is just one of those questions that is easy to ask and annoying to check by hand. A dictionary and a loop make a fairly good playground when I feel like finding patterns that may or may not mean anything.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/etedj.com\/projects\/fun\/dictTest.html\">See the dictionary experiment<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here is a little dictionary experiment: give every letter a number, with A equal to 1 and Z equal to 26, and add up each word. I wanted to see which words landed on multiples of 26. The page carries a big word list right in the HTML. JavaScript walks through it, skips entries containing [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[28,3,29],"class_list":["post-32","post","type-post","status-publish","format-standard","hentry","category-experiments","tag-algorithms","tag-javascript","tag-words"],"_links":{"self":[{"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/posts\/32","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/comments?post=32"}],"version-history":[{"count":0,"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/posts\/32\/revisions"}],"wp:attachment":[{"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/media?parent=32"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/categories?post=32"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eric.tedjamulia.com\/blog\/wp-json\/wp\/v2\/tags?post=32"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}