{"id":4,"date":"2021-10-08T16:36:36","date_gmt":"2021-10-08T16:36:36","guid":{"rendered":"https:\/\/iris.siue.edu\/novelgenerator\/?page_id=4"},"modified":"2021-10-12T19:06:57","modified_gmt":"2021-10-12T19:06:57","slug":"novel-generator-machine","status":"publish","type":"page","link":"https:\/\/iris.siue.edu\/novelgenerator\/","title":{"rendered":"Novel Generator Machine"},"content":{"rendered":"\n<div class=\"pagelinks\"><a href=\"https:\/\/iris.siue.edu\/novelgenerator\/about\"><button class=\"pagelink\">About<\/button><\/a><a href=\"https:\/\/iris.siue.edu\/novelgenerator\/novel-knowledge-generator\"><button class=\"pagelink\">Novel Knowledge Generator<\/button><button class=\"pagelink\">Black Literary Network<\/button><\/a><\/div>\n<div class=\"pagecontent\">\n<div class=\"header\">\n<h1>The Novel Generator Machine<\/h1>\n<\/div>\n<p class=\"instructions\">Check any box or boxes related to your interests, and the Novel Generator Machine will provide responses.<\/p><br>\n<p class=\"instructions\">For multiple parameters, choose whether to search for novels matching all selected terms (And) or any of the selected terms (Or).<\/p>\n<div class=\"options\">\n  <span class=\"operation\"><input type=\"radio\" name=\"operation\" value=\"union\" id=\"op-union\" checked=\"\"><label for=\"op-union\">Or<\/label><\/span>\n  <span class=\"operation\"><input type=\"radio\" name=\"operation\" value=\"intersection\" id=\"op-inter\"><label for=\"op-inter\">And<\/label><\/span>\n<\/div>\n<div class=\"categories\">\n<div class=\"row\">\n<div class=\"column\">\n<p class=\"instructions\">Author Characteristics<\/p>\n  <span class=\"category\">\n    <input type=\"checkbox\" value=\"fauth\" id=\"cat-fauth\">\n    <label for=\"cat-fauth\">Written by woman author<\/label>\n  <\/span>\n<br>\n  <span class=\"category\">\n    <input type=\"checkbox\" value=\"mauth\" id=\"cat-mauth\">\n    <label for=\"cat-mauth\">Written by man author<\/label>\n  <\/span>\n<\/div>\n<div class=\"column\">\n<p class=\"instructions\">Genre<\/p>\n  <span class=\"category\">\n    <input type=\"checkbox\" value=\"sfgen\" id=\"cat-sfgen\">\n    <label for=\"cat-sfgen\">Science fiction<\/label>\n  <\/span>\n<\/div>\n<\/div>\n<div class=\"row\">\n<div class=\"column\">\n<p class=\"instructions\">Protagonist Characteristics<\/p>\n  <span class=\"category\">\n    <input type=\"checkbox\" value=\"mpro\" id=\"cat-mpro\">\n    <label for=\"cat-mpro\">Man protagonist<\/label>\n  <\/span>\n<br>\n<span class=\"category\">\n    <input type=\"checkbox\" value=\"fpro\" id=\"cat-fpro\">\n    <label for=\"cat-fpro\">Woman protagonist<\/label>\n  <\/span>\n<\/div>\n<div class=\"column\">\n<p class=\"instructions\">Themes and Topics<\/p>\n<span class=\"category\">\n    <input type=\"checkbox\" value=\"slaverytheme\" id=\"cat-slaverytheme\">\n    <label for=\"cat-slaverytheme\">Focus on slavery<\/label>\n  <\/span>\n<\/div>\n<\/div>\n<div class=\"row\">\n<p class=\"instructions\">Period of Publication<\/p>\n<span class=\"category\">\n    <input type=\"checkbox\" value=\"0049pub\" id=\"cat-0049pub\">\n    <label for=\"cat-0049pub\">Published between 1900 and 1949<\/label>\n  <\/span>\n<br>\n<span class=\"category\">\n    <input type=\"checkbox\" value=\"5069pub\" id=\"cat-5069pub\">\n    <label for=\"cat-5069pub\">Published between 1950 and 1969<\/label>\n  <\/span>\n<br>\n<span class=\"category\">\n    <input type=\"checkbox\" value=\"7099pub\" id=\"cat-7099pub\">\n    <label for=\"cat-7099pub\">Published between 1970 and 1999<\/label>\n  <\/span>\n<br>\n<span class=\"category\">\n    <input type=\"checkbox\" value=\"0020pub\" id=\"cat-0020pub\">\n    <label for=\"cat-0020pub\">Published between 2000 and 2020<\/label>\n  <\/span>\n<\/div>\n<\/div>\n\n<div class=\"container\">\n  <div class=\"filterDiv fauth mpro fpro 0049pub\">Pauline Hopkins, <i>Contending Forces<\/i> (Colored Cooperative Publishing Company, 1900)<\/div>\n  <div class=\"filterDiv mauth mpro 0049pub\">Charles Chesnutt, <i>The Marrow of Tradition<\/i> (Houghton, Mifflin and Company, 1901)<\/div>\n  <div class=\"filterDiv mauth mpro 0049pub\">Paul Laurence Dunbar, <i>The Sport of the Gods<\/i> (Dodd, Mead and Company, 1902)<\/div>\n  <div class=\"filterDiv mauth mpro 0049pub\">James Weldon Johnson, <i>The Autobiography of an Ex-Colored Man<\/i> (Sherman, French, &amp; Co., 1912)<\/div>\n  <div class=\"filterDiv mauth mpro 5069pub\">Ralph Ellison, <i>Invisible Man<\/i> (Random House, 1952)<\/div>\n  <div class=\"filterDiv mauth mpro 5069pub\">James Baldwin, <i>Go Tell It on the Mountain<\/i> (Knopf, 1953)<\/div>\n  <div class=\"filterDiv fauth fpro 5069pub\">Gwendolyn Brooks, Maud Martha (Popular Library, 1953)<\/div>\n  <div class=\"filterDiv mauth mpro 5069pub\">Richard Wright, <i>The Outsider<\/i> (Harper &amp; Bros, 1953)<\/div>\n  <div class=\"filterDiv fauth fpro 7099pub\">Toni Morrison, <i>The Bluest Eye<\/i> (Holt Rinehart Winston, 1970)<\/div>\n  <div class=\"filterDiv fauth mpro 7099pub\">Alice Walker, <i>The Third Life of Grange Copeland<\/i> (Harcourt Brace Jovanovich, 1970)<\/div>\n  <div class=\"filterDiv fauth fpro sfgen 7099pub\">Octavia Butler, <i>Wild Seed<\/i> (Doubleday &amp; Company, 1980)<\/div>\n  <div class=\"filterDiv mauth mpro 0020pub\">Jeffrey Reynard Allen, <i>Rails Under My Back<\/i> (Farrar, Straus and Giroux, 2000)<\/div>\n<\/div><br>\n\n\n<script>\nvar checkboxes = document.querySelectorAll(\".categories input\");\nfor(var i = 0; i < checkboxes.length; i++) {\n  checkboxes[i].addEventListener(\"change\", filter);\n}\nvar radios = document.getElementsByName(\"operation\");\nfor(var i = 0; i < radios.length; i++) {\n  radios[i].addEventListener(\"change\", filter);\n}\nfilter();\nfunction filter() {\n  var i, j;\n\n  \/\/ Choose an operation\n  var operation = document.getElementById(\"op-union\").checked ? \"union\" : \"intersection\";\n\n  \/\/ Get the selected categories\n  var checkboxes = document.querySelectorAll(\".categories input\");\n  var categories = [];\n  var c;\n  for(i = 0; i < checkboxes.length; i++) {\n    if(checkboxes[i].checked) {\n      c = checkboxes[i].value;\n      categories.push(c);\n    }\n  }\n\n  \/\/ Apply the filter\n  var items = document.querySelectorAll(\".filterDiv\");\n  var item, show;\n  for(i = 0; i < items.length; i++) {\n    item = items[i];\n    if(categories.length == 0) {\n      show = false;\n    } else if(operation == \"union\") {\n      \/\/ Union: Only one of the categories needs to exist\n      show = false;\n      for(j = 0; j < categories.length; j++) {\n        if(item.classList.contains(categories[j])) {\n          show = true;\n          break;\n        }\n      }\n    } else {\n      \/\/ Intersection: All of the categories must apply\n      show = true;\n      for(j = 0; j < categories.length; j++) {\n        if(!item.classList.contains(categories[j])) {\n          show = false;\n          break;\n        }\n      }\n    }\n\n    if(show) {\n      item.classList.add(\"show\");\n    } else {\n      item.classList.remove(\"show\");\n    }\n  }\n}\n<\/script><\/div>\n","protected":false},"excerpt":{"rendered":"<p>AboutNovel Knowledge GeneratorBlack Literary Network The Novel Generator Machine Check any box or boxes related to your interests, and the Novel Generator Machine will provide responses. For multiple parameters, choose whether to search for novels matching all selected terms (And) or any of the selected terms (Or). Or And Author Characteristics Written by woman author<a class=\"more-link\" href=\"https:\/\/iris.siue.edu\/novelgenerator\/\">Continue reading <span class=\"screen-reader-text\">&#8220;Novel Generator Machine&#8221;<\/span><\/a><\/p>\n","protected":false},"author":160,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_sb_is_suggestion_mode":false,"_sb_show_suggestion_boards":false,"_sb_show_comment_boards":false,"_sb_suggestion_history":"","_sb_update_block_changes":"","footnotes":""},"class_list":["post-4","page","type-page","status-publish","hentry","entry"],"_links":{"self":[{"href":"https:\/\/iris.siue.edu\/novelgenerator\/wp-json\/wp\/v2\/pages\/4","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/iris.siue.edu\/novelgenerator\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/iris.siue.edu\/novelgenerator\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/iris.siue.edu\/novelgenerator\/wp-json\/wp\/v2\/users\/160"}],"replies":[{"embeddable":true,"href":"https:\/\/iris.siue.edu\/novelgenerator\/wp-json\/wp\/v2\/comments?post=4"}],"version-history":[{"count":29,"href":"https:\/\/iris.siue.edu\/novelgenerator\/wp-json\/wp\/v2\/pages\/4\/revisions"}],"predecessor-version":[{"id":116,"href":"https:\/\/iris.siue.edu\/novelgenerator\/wp-json\/wp\/v2\/pages\/4\/revisions\/116"}],"wp:attachment":[{"href":"https:\/\/iris.siue.edu\/novelgenerator\/wp-json\/wp\/v2\/media?parent=4"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}