# Add an input text to "Genetic Algorithm, Evolving Shakespeare" example from NoC

**URL:** <https://discourse.processing.org/t/add-an-input-text-to-genetic-algorithm-evolving-shakespeare-example-from-noc/28086>\
**Category:** p5.js\
**Created:** [February 26, 2021, 2:59am UTC](https://discourse.processing.org/t/add-an-input-text-to-genetic-algorithm-evolving-shakespeare-example-from-noc/28086 "2021-02-26T02:59:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pab10](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/pab10/32/12208_2.png) [@pab10](https://discourse.processing.org/u/pab10)\
**Post date:** [February 26, 2021, 2:59am UTC](https://discourse.processing.org/t/add-an-input-text-to-genetic-algorithm-evolving-shakespeare-example-from-noc/28086/1 "2021-02-26T02:59:45Z")

</div>

Hi there… i’m try to add an input box to the Shakespeare genetic algorithm  
example from Daniel Shiffman’s Nature Of Code ([noc-examples-p5.js/chp09\_ga/NOC\_9\_01\_GA\_Shakespeare at master · nature-of-code/noc-examples-p5.js · GitHub](https://github.com/nature-of-code/noc-examples-p5.js/tree/master/chp09_ga/NOC_9_01_GA_Shakespeare)) so the user can enter their own text. I tried to add it in the sketch.js file. I tried a thousand ways but I only get errors ;(((  
Any clues?  
Thanks!!

---

<div class="post-metadata">

**Author:** ![micuat](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/micuat/32/19407_2.png) [@micuat](https://discourse.processing.org/u/micuat)\
**Post date:** [February 26, 2021, 8:47pm UTC](https://discourse.processing.org/t/add-an-input-text-to-genetic-algorithm-evolving-shakespeare-example-from-noc/28086/2 "2021-02-26T20:47:18Z")

</div>

hi! that sounds frustrating. do you want to share what you tried so we can take a look at it? you don’t have to share thousand ways you tried 🙂 just upload what you think should work (ideally on the p5js web editor so we can easily test it).
