[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-508891-105":59,"doc-detail-508891-en":131},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":124,"head_meta":126,"extra_data":128,"updated_unix":130},105,"en","leveraging-large-language-models-for-spell-generation-in-dungeons-dragons","Leveraging Large Language Models for Spell-Generation in Dungeons & Dragons","","Dungeons & Dragons (D&D) features highly narrative, rule-bound spellcasting that makes Natural Language Generation a difficult setting for large language models (LLMs). This paper investigates generating new D&D spells with open-source LLMs under limited-task data availability by building a dataset of 3,259 spell instances from official and fan-made sources. Several LLMs are quantitatively and qualitatively evaluated using Bleu and BertScore, followed by an in-vivo player survey assessing quality and rule compliance. The work also open-sources models, datasets, and results to support further research.",{"@graph":69,"@context":123},[70,84,106],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":40,"@type":76,"position":81},"https://docshare.wps.com/document/research-report/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/leveraging-large-language-models-for-spell-generation-in-dungeons-dragons/508891/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/leveraging-large-language-models-for-spell-generation-in-dungeons-dragons/508891.png","ImageObject",300,407,{"name":92,"@type":93},"Aditya","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-06","2026-10-05",true,{"@type":102,"interactionType":103,"userInteractionCount":105},"InteractionCounter",{"@type":104},"ViewAction",13,{"@type":107,"mainEntity":108},"FAQPage",[109,115,119],{"name":110,"@type":111,"acceptedAnswer":112},"How is the spell dataset for D&D constructed in this paper?","Question",{"text":113,"@type":114},"The dataset includes 3,259 spell instances, combined from official and fan-made D&D spells. It is used to fine-tune open-source LLMs for spell generation.","Answer",{"name":116,"@type":111,"acceptedAnswer":117},"How are generated spells evaluated quantitatively?",{"text":118,"@type":114},"The paper computes metrics such as Bleu and BertScore to provide quantitative assessment of the generated spells.",{"name":120,"@type":111,"acceptedAnswer":121},"How are the generated spells evaluated beyond automatic metrics?",{"text":122,"@type":114},"An in-vivo evaluation is conducted via a survey involving D&D players to judge both the quality of the spells and their adherence to game rules.","https://schema.org",{"og:url":83,"og:type":125,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":127,"canonical":83},"index,follow",{"doc_id":129,"site_id":62},508891,1791353980,{"code":4,"msg":5,"data":132},{"doc_id":129,"user_id":133,"nickname":92,"user_avatar":134,"doc_module":4,"category_id":39,"category_name":40,"doc_title":65,"doc_description":67,"doc_content":135,"file_id":136,"file_url":137,"file_type":138,"file_size":139,"view_count":105,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":44,"language":140,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":67,"update_tm":144,"read_time":145,"preview_page_count":19,"preview_urls":146},962085564549,"https://ap-avatar.wpscdn.com/davatar_085a072bc5b1113ac321206ff7593b45","Leveraging Large Language Models for Spell-Generation  \nin Dungeons & Dragons  \nElio Musacchio, Lucia Siciliani, Pierpaolo Basile, Giovanni Semeraro  \nDepartment of Computer Science, University of Bari Aldo Moro (Bari, Italy) [elio.musacchio@phd.unipi.it](elio.musacchio@phd.unipi.it), {[name.surname}@uniba.it](name.surname}@uniba.it)  \nAbstract  \nDungeons&Dragons (D&D) is a classic tabletop game with a 50-year history. Its intricate and customizable gameplay allows players to create endless worlds and stories. Due to the highly narrative component of this game, D&D and many other interactive games represent a challenging setting for the Natural Language Generation (NLG) capabilities of LLMs. This paper explores using LLMs to generate new spells, which are one of the most captivating aspects of D&D gameplay. Due to the scarcity of resources available for such a specific task, we build a dataset of 3,259 instances by combining official and fan-made D&D spells. We considered several LLMs in generating spells, which underwent a quantitative and qualitative evaluation. Metrics including Bleu and BertScore were computed for quantitative assessments. Subsequently, we also conducted an in-vivo evaluation with a survey involving D&D players, which could assess the quality of the generated spells as well as their adherence to the rules. Furthermore, the paper emphasizes the open-sourcing of all models, datasets, and findings, aiming to catalyze further research on this topic.  \nKeywords: Generative Artificial Intelligence, Large Language Model, Text Generation, Dungeons&Dragons  \n1. Introduction  \nIn tabletop role-playing games, Dungeons & Dragons (D&D) is a timeless classic, captivating players with its immersive storytelling, strategic gameplay, and boundless possibilities. Central to the experience of D&D is the use of spells, which enable players to wield magical forces, shape reality, and overcome challenges within the game world.  \nD&D operates within a framework of rules, facilitating structured gameplay while allowing for creativity and improvisation. Players assume the roles of characters with distinct abilities, embarking on adventures guided by a Dungeon Master (DM) who orchestrates the narrative and adjudicates the rules. One of the most integral aspects of character abilities in D&D is casting spells, which encompass avast array of effects ranging from elemental manipulation to healing and illusion.  \nTraditionally, spell-casting in D&D has relied on predefined lists of spells published in rule books, with players selecting spells for their characters based on predefined criteria such as character class, level, and available spell slots. However, creating new spells or expanding the existing repertoire has mainly been relegated to game designers or enthusiasts, often requiring extensive manual effort and expertise.  \nIn recent years, the emergence of Large Language Models (LLMs) powered by artificial intelligence has revolutionized various domains, including content generation and creative writing. These models are trained on vast corpora of text data and demonstrate remarkable capabilities in understanding and generating human-like text.  \nThis paper explores the potential of leveraging open-source LLMs to generate spells in D&D, aiming to augment the creative possibilities within the game. By harnessing the generative power of LLMs, players and game designers can unlock a wealth of spell variations, improving the game with greater depth, novelty, and customization options. In particular, our work proposes a methodology for integrating LLMs into the spell generation process. We investigate the feasibility of automating spell creation by fine-tuning recent open-source LLMson a dataset of spells manually generated by D&D enthusiasts. Furthermore, we explore the implications of employing LLMs for spell generation in D&D, including the quality of generated spells and the change in performance by varying the number of model par","cbCaiu4YakPPRB1l","https://ap.wps.com/l/cbCaiu4YakPPRB1l","pdf",245795,"English","# 1. Introduction\n# 2. Related Work\n# 3. Methodology\n# 4. Evaluation and Results","[{\"question\":\"How is the spell dataset for D\\u0026D constructed in this paper?\",\"answer\":\"The dataset includes 3,259 spell instances, combined from official and fan-made D\\u0026D spells. It is used to fine-tune open-source LLMs for spell generation.\"},{\"question\":\"How are generated spells evaluated quantitatively?\",\"answer\":\"The paper computes metrics such as Bleu and BertScore to provide quantitative assessment of the generated spells.\"},{\"question\":\"How are the generated spells evaluated beyond automatic metrics?\",\"answer\":\"An in-vivo evaluation is conducted via a survey involving D\\u0026D players to judge both the quality of the spells and their adherence to game rules.\"}]","Leveraging Large Language Models for Spell-Generation in Dungeons & Dragons | PDF",1791232955,23,[147,151,155,159],{"page_no":8,"url":148,"width":149,"height":150},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/19ee7971b06cfb6d122b7540fe158017.webp",983,1390,{"page_no":14,"url":152,"width":153,"height":154},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/fcea0754f1fee9b154552a96b7d7a008.webp",982,1388,{"page_no":81,"url":156,"width":157,"height":158},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/0a3a81083e0d70e48ec4cacc35edb37e.webp",981,1387,{"page_no":19,"url":160,"width":161,"height":162},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-17/9e642aa8467844124f11824a85f9d311.webp",980,1385]