{"id":469,"date":"2025-08-30T09:03:28","date_gmt":"2025-08-30T09:03:28","guid":{"rendered":"https:\/\/paultrowler.com\/wordpress\/?page_id=469"},"modified":"2025-10-27T06:32:19","modified_gmt":"2025-10-27T06:32:19","slug":"chapter-7-theory-in-the-literature","status":"publish","type":"page","link":"https:\/\/paultrowler.com\/wordpress\/index.php\/chapter-7-theory-in-the-literature\/","title":{"rendered":"Chapter 7: Use of your theoretical tools in the literature"},"content":{"rendered":"\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n  <meta charset=\"UTF-8\"\/>\n  <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\"\/>\n  <title>Theory in the Literature \u2014 Consensus Prompt Tool<\/title>\n\n  <!-- Tailwind CSS -->\n  <script src=\"https:\/\/cdn.tailwindcss.com\"><\/script>\n  <script>\n    tailwind.config = {\n      theme: {\n        extend: {\n          colors: {\n            primary: {\n              50:'#eff6ff',100:'#dbeafe',200:'#bfdbfe',300:'#93c5fd',\n              400:'#60a5fa',500:'#3b82f6',600:'#2563eb',700:'#1d4ed8',\n              800:'#1e40af',900:'#1e3a8a'\n            },\n            ink: { 700:'#0f172a', 600:'#1f2937', 500:'#334155', 400:'#475569' }\n          },\n          boxShadow: { soft:'0 10px 25px -10px rgba(30, 64, 175, 0.25)' },\n          borderRadius: { '2xl':'1.25rem' }\n        }\n      }\n    }\n  <\/script>\n\n  <!-- Inter -->\n  <link rel=\"preconnect\" href=\"https:\/\/fonts.googleapis.com\"\/>\n  <link rel=\"preconnect\" href=\"https:\/\/fonts.gstatic.com\" crossorigin\/>\n  <link href=\"https:\/\/fonts.googleapis.com\/css2?family=Inter:wght@400;500;600;700&#038;display=swap\" rel=\"stylesheet\"\/>\n\n  <style>\n    body { font-family: 'Inter', sans-serif; }\n    .prompt-segment { border-left: 4px solid #3b82f6; padding-left: 1rem; margin: 1rem 0; }\n    .prompt-segment h4 { font-weight: 600; color: #1e40af; }\n    .prompt-segment-content { color: #475569; font-style: italic; }\n    .prompt-gap { background-color: #dbeafe; color: #1e40af; padding: 1px 6px; border-radius: 4px; font-weight: 600; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\",\"Courier New\", monospace; }\n    .prompt-gap-filled { background-color: #dcfce7; color: #166534; }\n  <\/style>\n<\/head>\n<body class=\"bg-primary-50 text-ink-700\">\n  <main class=\"max-w-4xl mx-auto px-6 py-8 space-y-6\">\n\n    <!-- Preamble -->\n    <section class=\"bg-white rounded-2xl shadow-soft border border-primary-100 p-6\">\n      <h1 class=\"text-2xl font-bold text-primary-800\">Theory in the Literature \u2014 Consensus Prompt Tool<\/h1>\n      <p class=\"mt-2 text-sm text-ink-500\">\n        This tool builds a tailored prompt for <strong>Consensus<\/strong> that asks it to search and summarise how a chosen theory has been\n        used across the literature. You\u2019ll get: a table of key references, a synthesis of how the theory is deployed (e.g., framing,\n        conceptual scaffolding, analytical lens), common patterns, tensions\/gaps, and design implications for your study.\n      <\/p>\n      <p class=\"mt-2 text-sm text-ink-500\">\n        Fill in your project summary (from Chapter 1) and the theory you wish to explore. Copy the prompt and paste it into Consensus \u2014 the\n        tool will do the rest.\n      <\/p>\n    <\/section>\n\n    <!-- Stage 0: Reusable Project Summary Block -->\n    <section id=\"pt-project-summary-block\" class=\"relative isolate\">\n      <div class=\"rounded-2xl border border-primary-200 bg-white shadow-sm\">\n        <div class=\"border-b border-primary-100 bg-primary-50\/60 rounded-t-2xl px-4 sm:px-6 py-3 flex items-center gap-3\">\n          <div class=\"h-8 w-8 flex items-center justify-center rounded-full bg-primary-100 text-primary-800 font-semibold\">0<\/div>\n          <h3 class=\"m-0 text-base sm:text-lg font-semibold text-primary-900\">Paste your doctoral project summary<\/h3>\n        <\/div>\n        <div class=\"p-4 sm:p-6 space-y-3\">\n          <p class=\"text-sm text-primary-900\/90 leading-relaxed\">\n            Paste the short summary you created in\n            <a href=\"https:\/\/paultrowler.com\/wordpress\/index.php\/helping-ai-to-understand-your-research-project\" target=\"_blank\" rel=\"noopener noreferrer\" class=\"underline text-primary-700 hover:text-primary-900\">\n              Chapter 1 \u2014 Helping AI Understand Your Research Project\n            <\/a>. Make any updates you need to. Tools on this page will tailor their feedback using this summary.\n          <\/p>\n          <div>\n            <label for=\"pt-project-summary\" class=\"block text-sm font-medium text-primary-900 mb-2\">Your project summary<\/label>\n            <textarea id=\"pt-project-summary\" class=\"w-full min-h-[12rem] rounded-xl border border-primary-200 focus:border-primary-500 focus:ring-2 focus:ring-primary-200\/70 px-3 py-2 text-[15px] leading-relaxed\" placeholder=\"Paste or type your updated doctoral project summary here...\"><\/textarea>\n            <div class=\"mt-3 flex flex-wrap items-center gap-2 text-xs text-primary-900\/70\">\n              <button type=\"button\" id=\"pt-clear-summary\" class=\"inline-flex items-center gap-1 rounded-full border border-primary-200 px-3 py-1 hover:bg-primary-50 active:bg-primary-100\">Clear<\/button>\n            <\/div>\n          <\/div>\n        <\/div>\n      <\/div>\n    <\/section>\n\n    <!-- Input Card -->\n    <section class=\"bg-white rounded-2xl shadow-soft border border-primary-100 p-6\">\n      <h2 class=\"text-xl font-semibold text-primary-800 mb-4\">1) Enter theory details<\/h2>\n      <div class=\"grid md:grid-cols-2 gap-6\">\n        <!-- Theory input -->\n        <div>\n          <label for=\"theory\" class=\"block text-sm font-medium text-ink-500 mb-1\">Theory\/ies you wish to deploy (comma separated)<\/label>\n          <input id=\"theory\" type=\"text\" placeholder=\"e.g., Actor\u2013Network Theory (ANT), Structuration Theory\" class=\"w-full rounded-xl border border-primary-200 bg-primary-50 focus:bg-white focus:ring-2 focus:ring-primary-400 focus:border-primary-400 px-4 py-3 outline-none\"\/>\n          <p class=\"text-xs text-ink-400 mt-2\">Name the focal theory or multiple theories (comma separated, e.g., Bourdieu&#8217;s field theory, Activity Theory, TPACK).<\/p>\n        <\/div>\n      <\/div>\n\n      <!-- Generated Prompt -->\n      <div class=\"mt-8\">\n        <h2 class=\"text-xl font-semibold text-primary-800 mb-3\">2) Generated Prompt (Visible excerpt)<\/h2>\n\n        <!-- Read-only full prompt -->\n        <div class=\"rounded-2xl overflow-hidden border border-primary-200\">\n          <div class=\"bg-primary-100 px-4 py-2 text-sm text-primary-900 flex items-center justify-between\">\n            <span>Visible excerpt<\/span>\n            <button id=\"refreshBtn\" class=\"text-primary-800 underline underline-offset-2 hover:text-primary-900\">Refresh<\/button>\n          <\/div>\n          <textarea id=\"prompt\" class=\"w-full h-72 p-4 bg-primary-50\/60 outline-none resize-y\" readonly><\/textarea>\n        <\/div>\n        <p class=\"text-xs text-ink-400 mt-2\">Tip: Edit the fields above \u2014 this preview updates automatically. Use <span class=\"font-semibold\">Pro<\/span> or <span class=\"font-semibold\">Deep<\/span> in Consensus for stronger analyses.<\/p>\n      <\/div>\n\n      <!-- Buttons -->\n      <div class=\"mt-6 flex flex-wrap gap-3\">\n        <button id=\"consensusBtn\" class=\"inline-flex items-center gap-2 bg-primary-800 hover:bg-primary-900 text-white font-medium px-5 py-3 rounded-xl shadow-soft active:scale-[.99]\">\n          <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"h-5 w-5\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M16 1H4a2 2 0 0 0-2 2v12h2V3h12V1zm3 4H8a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2zm0 16H8V7h11v14z\"\/><\/svg>\n          Copy prompt and go to Consensus\n        <\/button>\n        <button id=\"clearBtn\" class=\"inline-flex items-center gap-2 bg-white border border-primary-300 text-primary-700 hover:bg-primary-50 font-medium px-5 py-3 rounded-xl active:scale-[.99]\">\n          <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"h-5 w-5\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M6 19h12v2H6zM5 4h14l-1 12H6zM9 2h6v2H9z\"\/><\/svg>\n          Clear prompt\n        <\/button>\n        <span id=\"status\" class=\"text-sm text-ink-400 self-center\"><\/span>\n      <\/div>\n\n      <hr class=\"my-8 border-primary-100\"\/>\n      <div class=\"text-xs text-ink-400 leading-relaxed\">\n        <p><span class=\"font-semibold\">Note:<\/span> \u201cCopy prompt and go to Consensus\u201d opens <em>consensus.app\/search<\/em> in a new tab and copies your prompt. For security reasons browsers don\u2019t auto-paste \u2014 press <kbd>Ctrl\/\u2318+V<\/kbd> in the search box when the page opens.<\/p>\n      <\/div>\n    <\/section>\n  <\/main>\n\n  <script>\n    const theoryEl = document.getElementById('theory');\n    const summaryEl = document.getElementById('pt-project-summary');\n    const clearSumEl = document.getElementById('pt-clear-summary');\n    const promptEl = document.getElementById('prompt');\n    const openBtn = document.getElementById('consensusBtn');\n    const refreshBtn = document.getElementById('refreshBtn');\n    const clearBtn = document.getElementById('clearBtn');\n    const statusEl = document.getElementById('status');\n\n    const esc = (s)=> (s||'').replace(\/<\/g,'&lt;').replace(\/>\/g,'&gt;');\n\n    function say(msg){\n      statusEl.textContent = msg || '';\n      if (msg) setTimeout(()=> statusEl.textContent = '', 3000);\n    }\n\n    function save(){\n      try {\n        localStorage.setItem('theory_consensus_theory', theoryEl?.value || '');\n        localStorage.setItem('theory_consensus_summary', summaryEl?.value || '');\n      } catch(e){}\n    }\n\n    function buildPrompt(){\n      const theory = (theoryEl.value || '[your theory\/ies]').trim();\n      const summary = (summaryEl.value || '[no project summary provided]').trim();\n\n      return (\n`You are an expert in analysing how theories are used in social science research.\n\nProject context provided by the researcher:\n\u2022 Project summary \u2192 ${summary}\n\nPlease review the literature that deploys the following theory\/ies: ${theory}.\n\nReturn:\n1) Up to the 20 most cited or most relevant references you find in a 3-column table: (a) reference, (b) brief summary (2\u20133 sentences), (c) how the theory was deployed.\n2) A synthesis of the different ways the theory was deployed, distinguishing roles such as: framing research questions, conceptual scaffolding, guiding methodology, analytical lens, or interpretive resource.\n3) Common patterns in how the theory was used across the studies.\n4) Tensions, lacunae, or under-explored uses, noting any disagreements or boundary conditions.\n5) Design implications for my study (RQs, data, methods, analysis) and potential avenues for novel contribution.\n\nConstraints:\n\u2022 Base your response entirely on the sources returned by Consensus for this query.\n\u2022 Where you summarise, include in-text citations or bracketed numbers mapping back to your reference table.\n\u2022 Be concise but sufficiently detailed for a doctoral researcher planning their design.`\n      );\n    }\n\n    function updatePreview(){\n      promptEl.value = buildPrompt();\n    }\n\n    async function copyToClipboard(text){\n      try { await navigator.clipboard.writeText(text); return true; }\n      catch(e){\n        const ta = document.createElement('textarea');\n        ta.value = text; ta.style.position='fixed'; ta.style.top='-9999px';\n        document.body.appendChild(ta); ta.select();\n        let ok=false; try { ok = document.execCommand('copy'); } catch(e){ ok=false; }\n        document.body.removeChild(ta); return ok;\n      }\n    }\n\n    ['input','change'].forEach(ev=>{\n      theoryEl.addEventListener(ev, ()=>{ save(); updatePreview(); });\n      summaryEl.addEventListener(ev, ()=>{ save(); updatePreview(); });\n    });\n\n    refreshBtn.addEventListener('click', (e)=>{ e.preventDefault(); updatePreview(); say('Prompt refreshed'); });\n\n    openBtn.addEventListener('click', async ()=>{\n      const ok = await copyToClipboard(buildPrompt());\n      window.open('https:\/\/consensus.app\/search\/', '_blank', 'noopener');\n      say(ok ? 'Prompt copied. Switch to Consensus and paste (Ctrl\/\u2318+V).' : 'Opened Consensus. Please copy the prompt manually.');\n    });\n\n    clearSumEl.addEventListener('click', ()=>{\n      summaryEl.value = ''; save(); updatePreview(); summaryEl.focus();\n    });\n\n    clearBtn.addEventListener('click', ()=>{\n      theoryEl.value = ''; summaryEl.value = ''; save(); updatePreview(); say('Cleared.');\n    });\n\n    updatePreview();\n  <\/script>\n\n  <!-- Copyright 2025 Professor Paul Trowler -->\n<\/body>\n<\/html>\n\n\n\n<p class=\"has-text-align-center has-small-font-size wp-block-paragraph\">Copyright 2025 Prof. Paul Trowler<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Theory in the Literature \u2014 Consensus Prompt Tool Theory in the Literature \u2014 Consensus Prompt Tool This tool builds a tailored prompt for Consensus that asks it to search and summarise how a chosen theory has been used across the literature. You\u2019ll get: a table of key references, a synthesis of how the theory is [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-469","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/paultrowler.com\/wordpress\/index.php\/wp-json\/wp\/v2\/pages\/469","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/paultrowler.com\/wordpress\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/paultrowler.com\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/paultrowler.com\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/paultrowler.com\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=469"}],"version-history":[{"count":12,"href":"https:\/\/paultrowler.com\/wordpress\/index.php\/wp-json\/wp\/v2\/pages\/469\/revisions"}],"predecessor-version":[{"id":836,"href":"https:\/\/paultrowler.com\/wordpress\/index.php\/wp-json\/wp\/v2\/pages\/469\/revisions\/836"}],"wp:attachment":[{"href":"https:\/\/paultrowler.com\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=469"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}