Skip to content

Commit

Permalink
Fix tabs in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian Hicks committed Aug 20, 2010
1 parent a514021 commit 940bf83
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -11,7 +11,7 @@ How?

After including json2.js and markov.js in your page...

var test = new markov(text, type, regex);
var test = new markov(text, type, regex);

The text can be anything you so desire.
The type should be "string" or "json".
Expand All @@ -22,15 +22,15 @@ Methods

to generate a phrase of a given length:

test.gen(length);
test.gen(length);

to see the object containing the data:

test.data;
test.data;

to get the JSON generated by JSON2.js of the data:

test.getJson();
test.getJson();

A warning though, you probably only want to use the JSON for making things a bit faster on the processing end with long text, as the JSON tends to be an order of magnitude greater in file size than the input text.

Expand Down

0 comments on commit 940bf83

Please sign in to comment.