What is Rita?

Designed to support the creation of new works of computational literature, the RiTa † library provides tools for artists and writers who work with natural language in programmable media. The library is designed to be simple and, at the same time, allows a range of powerful functions, from grammar and Markov-based generation to text mining, to feature analysis (part of the voice, phonemes, tensions, etc.). All RiTa functions are heuristic and do not require training data, which makes the central library remove compact. RiTa can also be integrated with your own customizable lexicon by the user or with the WordNet database. RiTa is implemented in both Java and JavaScript, is free and open source, and runs in several popular programming environments, including Android, Processing, Node and p5.js.

How does it work?

Barely this code begins as the great major, inserting some variables that we will use throughout the text, in this case (input, button, lexicon). Next we will create a setup setup, where we will declare Lexicon and its function, we will create a button and connect the button with ProcessRita, which is the next function. The functionRita is the key to the whole code, so to call it the heart, of the code. In it we can find a for cycle and the connection of an if with the reference of RiTA, the following is to declare what we want to appear, in this case words, and finally create a createP.

My video example