rita

RiTa: A toolkit for natural language and computational literature

The RiTa website

RiTa is designed to be an easy-to-use toolkit for experiments in natural language and generative literature. It is implemented in Java and JavaScript (with a unified API for bothl). It is free/libre and open-source according to the GPL license.

In node.js

To install: $ npm install rita

var rita = require('rita');
var rs = rita.RiString("The elephant took a bite!");
console.log(rs.features());

To run tests:

$ cd node_modules/rita && npm install && npm test && cd -

Or, see the 'Development Setup' instructions below...


Please! We are looking for more coders to help out... Just press Fork at the top of this github page and get started, or follow the instructions below...


  • Download and install npm. The easiest way to do this is to just install node.

  • Fork and clone this library.

    • First, login to github and fork the project

    • Then, from a terminal/shell:

    $ git clone https://github.com/dhowe/RiTaJS.git
  • Now navigate into the project folder and install dependencies via npm.

    $ cd RiTaJS && npm install
  • To create the library from src, use gulp.

    $ ./node_modules/.bin/gulp build
  • Optionally run tests in node with gulp.

    $ ./node_modules/.bin/gulp test.node
  • Work on an existing issue, then submit a pull request...