Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including rita with all npm packages installed. Try it out:

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

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

rita v1.3.85

RiTa: A toolkit for natural language and computational literature

Build Status npm version npm version

RiTa: a generative language toolkit for JavaScript

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 common API for both). It is free/libre and open-source via the GPL license.

About the project

In node.js

To install, do the following from a terminal prompt

$ npm install rita

then use require() from your code

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

To run tests, do the following from a terminal prompt:

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

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

Can I contribute?

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...

Development Setup

  • Download and install git, npm, and gulp. If you have them already, move on to step #2.

    a. You can find a version of git for your OS here
    b. The easiest way to install npm is to install node.js
    c. You can install gulp via npm as follows:

      $ npm install -g gulp
  • Fork and clone this library.

    a. First, login to github and fork the project
    b. Then, from a terminal/shell:

    $ git clone
  • Now navigate into the project folder and install dependencies via npm.

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

    $ gulp build
  • Optionally run tests in node with gulp.

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


RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free