{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/shall-i-compare-thee-to-a-machine-written","title":"Shall I Compare Thee to a Machine-Written Sonnet? An Approach to Algorithmic Sonnet Generation","arxiv_id":"1811.05067","date":"2018-11-13","proceeding":null,"authors":["John Benhardt","Peter Hase","Liuyi Zhu","Cynthia Rudin"],"abstract":"We provide an approach for generating beautiful poetry. Our sonnet-generation algorithm includes several novel elements that improve over the state of the art, leading to metrical, rhyming poetry with many human-like qualities. These novel elements include in-line punctuation, part of speech restrictions, and more appropriate training corpora. Our work is the winner of the 2018 PoetiX Literary Turing Test Award for computer-generated poetry.","url_abs":"https://arxiv.org/abs/1811.05067v2","url_pdf":"https://arxiv.org/pdf/1811.05067v2.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"shall-i-compare-thee-to-a-machine-written","repo_url":"https://github.com/peterbhase/poetry-generation","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"tf","reach":null},{"paper_slug":"shall-i-compare-thee-to-a-machine-written","repo_url":"https://github.com/m-rodin/poetry_generation","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"sonnet-generation","task_name":"Sonnet Generation"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/1811.05067","atlas_url":"https://app.syntology.ai/?focus=1811.05067","mcp":null,"developers":"https://syntology.ai/developers"},"arxiv_metadata":null,"syntology_extracted_results":null}