{"id":283,"date":"2014-04-22T21:24:48","date_gmt":"2014-04-22T21:24:48","guid":{"rendered":"http:\/\/blog.ackgame.com\/onwords\/?p=283"},"modified":"2014-04-22T21:28:06","modified_gmt":"2014-04-22T21:28:06","slug":"google-ngram-mad-libs","status":"publish","type":"post","link":"https:\/\/blog.ackgame.com\/onwords\/google-ngram-mad-libs\/","title":{"rendered":"Google Ngram Mad Libs"},"content":{"rendered":"<blockquote><p><span style=\"text-decoration: underline;\">Once upon a time<\/span> there was a little girl who was not a member of the family. <span style=\"text-decoration: underline;\">She was a<\/span> very good friend of mine. <span style=\"text-decoration: underline;\">When she<\/span> was a child and I was a little girl in a white dress and a white apron and a pair of shoes, we had to do something. <span style=\"text-decoration: underline;\">So we<\/span> have to get out of the way of the world.\u00a0 <span style=\"text-decoration: underline;\">I thought<\/span> I was going to be a long night of darkness and silence. Instead it was a matter of life and death of the son of the late King of Prussia. <span style=\"text-decoration: underline;\">This seemed<\/span> to be the only one who could have been a lot of talk. <span style=\"text-decoration: underline;\">Despite this<\/span> we have to be careful not to let the sun go down on our knees. <span style=\"text-decoration: underline;\">Incredibly, it<\/span> was not until the early 1980s that the government was forced to take a job in the city. <span style=\"text-decoration: underline;\">That meant that<\/span> the first two of these were in fact the same as the one in the middle. <span style=\"text-decoration: underline;\">Neither of us<\/span> had ever seen a man who was a stranger. <span style=\"text-decoration: underline;\">Of course she<\/span> did not know what to say to him. <span style=\"text-decoration: underline;\">After a while<\/span> I got up and went to the door of the house and the garden. <span style=\"text-decoration: underline;\">Finally I<\/span> said to him that he was not a man.<\/p><\/blockquote>\n<p>Do you remember that great party game Mad Libs, where you have a template of a story with blanks in strategic places and the host calls out parts of speech? The audience calls back with suggested fillers, usually wacky, suggestive, or ribald, which the host uses to complete story, and which is then read back to great hilarity. I have taken this further. The above story was written by Google. Yes, <a href=\"https:\/\/books.google.com\/ngrams\/\">Google Ngram Viewer<\/a> now has a feature where it will return to you the 10 most frequent words fitting in a phrase where you have placed a wildcard symbol (an asterisk), as determined by the millions of books and periodicals it has scanned. It can only go up to 5-grams, which means you can feed it the first four words and it will provide you the most frequent fifth word.<\/p>\n<p>So I fed it the underlined phrase &#8220;Once upon a time&#8221; and here&#8217;s what I got. With each new word filled in I used the preceding four words to provide the next. In most cases I used the most frequent word that Google provided but I had to make a few exceptions. If the word had gender, and both genders were represented as top frequent words, I took the one that made the most sense. I also picked the correct tense once or twice to make the sentence grammatical, but I did not allow logic, plot, or style drive any exceptions I made. I had to choose the second or third choice a few times to avoid getting into a repeating loop (e.g. &#8220;a white dress and a white apron and a white dress and &#8230;&#8221;). Since the Ngram viewer no longer includes Ngrams that go across sentence endings, I had to choose a stopping point myself, sometimes choosing the third or fourth returned word in place of &#8220;and&#8221; to avoid one long run-on sentence. Then I had to provide a new seed phrase consistent with what came just before. I tried not to guide the story with these. I have underlined all the seed phrases. At times Google&#8217;s page could not find a fifth word to complete a phrase, even though it had found the preceding phrase frequent, so in those cases I would reduce the feed to the last two or three words instead of four.<\/p>\n<p>You can play this game too. To get a bit more life in the story you can try some crazier seed phrases or just choose responses further down the list than I did.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Once upon a time there was a little girl who was not a member of the family. She was a very good friend of mine. When she was a child and I was a little girl in a white dress and a white apron and a pair of shoes, we had to do something. So [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"jetpack_post_was_ever_published":false},"categories":[1],"tags":[],"class_list":["post-283","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Google Ngram Mad Libs - OnWords<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/blog.ackgame.com\/onwords\/google-ngram-mad-libs\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Google Ngram Mad Libs - OnWords\" \/>\n<meta property=\"og:description\" content=\"Once upon a time there was a little girl who was not a member of the family. She was a very good friend of mine. When she was a child and I was a little girl in a white dress and a white apron and a pair of shoes, we had to do something. So [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/blog.ackgame.com\/onwords\/google-ngram-mad-libs\/\" \/>\n<meta property=\"og:site_name\" content=\"OnWords\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/russ.atkinson1\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/russ.atkinson1\" \/>\n<meta property=\"article:published_time\" content=\"2014-04-22T21:24:48+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2014-04-22T21:28:06+00:00\" \/>\n<meta name=\"author\" content=\"Russ\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Russ\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/blog.ackgame.com\\\/onwords\\\/google-ngram-mad-libs\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/blog.ackgame.com\\\/onwords\\\/google-ngram-mad-libs\\\/\"},\"author\":{\"name\":\"Russ\",\"@id\":\"https:\\\/\\\/blog.ackgame.com\\\/onwords\\\/#\\\/schema\\\/person\\\/654f3245633e56a118601748ce7c22e1\"},\"headline\":\"Google Ngram Mad Libs\",\"datePublished\":\"2014-04-22T21:24:48+00:00\",\"dateModified\":\"2014-04-22T21:28:06+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/blog.ackgame.com\\\/onwords\\\/google-ngram-mad-libs\\\/\"},\"wordCount\":645,\"publisher\":{\"@id\":\"https:\\\/\\\/blog.ackgame.com\\\/onwords\\\/#\\\/schema\\\/person\\\/654f3245633e56a118601748ce7c22e1\"},\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/blog.ackgame.com\\\/onwords\\\/google-ngram-mad-libs\\\/\",\"url\":\"https:\\\/\\\/blog.ackgame.com\\\/onwords\\\/google-ngram-mad-libs\\\/\",\"name\":\"Google Ngram Mad Libs - OnWords\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/blog.ackgame.com\\\/onwords\\\/#website\"},\"datePublished\":\"2014-04-22T21:24:48+00:00\",\"dateModified\":\"2014-04-22T21:28:06+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/blog.ackgame.com\\\/onwords\\\/google-ngram-mad-libs\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/blog.ackgame.com\\\/onwords\\\/google-ngram-mad-libs\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/blog.ackgame.com\\\/onwords\\\/google-ngram-mad-libs\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/blog.ackgame.com\\\/onwords\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Google Ngram Mad Libs\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/blog.ackgame.com\\\/onwords\\\/#website\",\"url\":\"https:\\\/\\\/blog.ackgame.com\\\/onwords\\\/\",\"name\":\"OnWords\",\"description\":\"Reflections of a writer on language and life\",\"publisher\":{\"@id\":\"https:\\\/\\\/blog.ackgame.com\\\/onwords\\\/#\\\/schema\\\/person\\\/654f3245633e56a118601748ce7c22e1\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/blog.ackgame.com\\\/onwords\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/blog.ackgame.com\\\/onwords\\\/#\\\/schema\\\/person\\\/654f3245633e56a118601748ce7c22e1\",\"name\":\"Russ\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f6d5f88feffeb51157b4512719048eefe58839a006ff50cd01d8ca0c316d7d99?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f6d5f88feffeb51157b4512719048eefe58839a006ff50cd01d8ca0c316d7d99?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f6d5f88feffeb51157b4512719048eefe58839a006ff50cd01d8ca0c316d7d99?s=96&d=mm&r=g\",\"caption\":\"Russ\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f6d5f88feffeb51157b4512719048eefe58839a006ff50cd01d8ca0c316d7d99?s=96&d=mm&r=g\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/russ.atkinson1\",\"https:\\\/\\\/studio.youtube.com\\\/channel\\\/UCAtS1H93Hh-6ptZ-6WzKpMw\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Google Ngram Mad Libs - OnWords","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/blog.ackgame.com\/onwords\/google-ngram-mad-libs\/","og_locale":"en_US","og_type":"article","og_title":"Google Ngram Mad Libs - OnWords","og_description":"Once upon a time there was a little girl who was not a member of the family. She was a very good friend of mine. When she was a child and I was a little girl in a white dress and a white apron and a pair of shoes, we had to do something. So [&hellip;]","og_url":"https:\/\/blog.ackgame.com\/onwords\/google-ngram-mad-libs\/","og_site_name":"OnWords","article_publisher":"https:\/\/www.facebook.com\/russ.atkinson1","article_author":"https:\/\/www.facebook.com\/russ.atkinson1","article_published_time":"2014-04-22T21:24:48+00:00","article_modified_time":"2014-04-22T21:28:06+00:00","author":"Russ","twitter_misc":{"Written by":"Russ","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/blog.ackgame.com\/onwords\/google-ngram-mad-libs\/#article","isPartOf":{"@id":"https:\/\/blog.ackgame.com\/onwords\/google-ngram-mad-libs\/"},"author":{"name":"Russ","@id":"https:\/\/blog.ackgame.com\/onwords\/#\/schema\/person\/654f3245633e56a118601748ce7c22e1"},"headline":"Google Ngram Mad Libs","datePublished":"2014-04-22T21:24:48+00:00","dateModified":"2014-04-22T21:28:06+00:00","mainEntityOfPage":{"@id":"https:\/\/blog.ackgame.com\/onwords\/google-ngram-mad-libs\/"},"wordCount":645,"publisher":{"@id":"https:\/\/blog.ackgame.com\/onwords\/#\/schema\/person\/654f3245633e56a118601748ce7c22e1"},"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/blog.ackgame.com\/onwords\/google-ngram-mad-libs\/","url":"https:\/\/blog.ackgame.com\/onwords\/google-ngram-mad-libs\/","name":"Google Ngram Mad Libs - OnWords","isPartOf":{"@id":"https:\/\/blog.ackgame.com\/onwords\/#website"},"datePublished":"2014-04-22T21:24:48+00:00","dateModified":"2014-04-22T21:28:06+00:00","breadcrumb":{"@id":"https:\/\/blog.ackgame.com\/onwords\/google-ngram-mad-libs\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/blog.ackgame.com\/onwords\/google-ngram-mad-libs\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/blog.ackgame.com\/onwords\/google-ngram-mad-libs\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/blog.ackgame.com\/onwords\/"},{"@type":"ListItem","position":2,"name":"Google Ngram Mad Libs"}]},{"@type":"WebSite","@id":"https:\/\/blog.ackgame.com\/onwords\/#website","url":"https:\/\/blog.ackgame.com\/onwords\/","name":"OnWords","description":"Reflections of a writer on language and life","publisher":{"@id":"https:\/\/blog.ackgame.com\/onwords\/#\/schema\/person\/654f3245633e56a118601748ce7c22e1"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/blog.ackgame.com\/onwords\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/blog.ackgame.com\/onwords\/#\/schema\/person\/654f3245633e56a118601748ce7c22e1","name":"Russ","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f6d5f88feffeb51157b4512719048eefe58839a006ff50cd01d8ca0c316d7d99?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f6d5f88feffeb51157b4512719048eefe58839a006ff50cd01d8ca0c316d7d99?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f6d5f88feffeb51157b4512719048eefe58839a006ff50cd01d8ca0c316d7d99?s=96&d=mm&r=g","caption":"Russ"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/f6d5f88feffeb51157b4512719048eefe58839a006ff50cd01d8ca0c316d7d99?s=96&d=mm&r=g"},"sameAs":["https:\/\/www.facebook.com\/russ.atkinson1","https:\/\/studio.youtube.com\/channel\/UCAtS1H93Hh-6ptZ-6WzKpMw"]}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p51pCz-4z","_links":{"self":[{"href":"https:\/\/blog.ackgame.com\/onwords\/wp-json\/wp\/v2\/posts\/283","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ackgame.com\/onwords\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ackgame.com\/onwords\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ackgame.com\/onwords\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ackgame.com\/onwords\/wp-json\/wp\/v2\/comments?post=283"}],"version-history":[{"count":8,"href":"https:\/\/blog.ackgame.com\/onwords\/wp-json\/wp\/v2\/posts\/283\/revisions"}],"predecessor-version":[{"id":290,"href":"https:\/\/blog.ackgame.com\/onwords\/wp-json\/wp\/v2\/posts\/283\/revisions\/290"}],"wp:attachment":[{"href":"https:\/\/blog.ackgame.com\/onwords\/wp-json\/wp\/v2\/media?parent=283"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ackgame.com\/onwords\/wp-json\/wp\/v2\/categories?post=283"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ackgame.com\/onwords\/wp-json\/wp\/v2\/tags?post=283"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}