node package manager

rita

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!");
console.log(rs.features());

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

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

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