top of page

Code (Rita)

 I want to use Rita to help me generates sentences.  Since I am not good at coding, coding will be the main problem that I need to face.  Therefore, I watch the online tutorial.  In this video, he teach the logic of the coding steps by steps.  I can catch up easily and understand to logic and the flow easily.

However, at the end I used the most simple way to complete the code.  Since I tried with the Json way, but I cannot successfully attach the file into the js file.  So I used the addRule function to complete the code.  And used the for loop to generate 10 sentences for my work.

Final Code (Reference from Daniel Shiffman)

 Result example 1:

 Result example 2:

 Result example 1:

 Result that I used for the graphic:

RiGrammar. (n.d.). Retrieved December 05, 2017, from https://rednoise.org/rita/reference/RiGrammar.php

Tutorial > Generating with RiGrammar. (n.d.). Retrieved December 05, 2017, from https://rednoise.org/rita/tutorial/grammars.php

bottom of page