Comparing version 0.0.2 to 0.0.3
@@ -12,3 +12,3 @@ var pos = require('pos') | ||
function remix(sentences, number_of_levels) { | ||
function remix(sentences, callback) { | ||
@@ -24,3 +24,3 @@ switch (typeof(sentences)){ | ||
var verbPhrase = formVerbPhrase() | ||
return nounPhrase.capitalizeFirstLetter()+' '+verbPhrase | ||
callback(nounPhrase.capitalizeFirstLetter()+' '+verbPhrase) | ||
@@ -37,3 +37,3 @@ default: | ||
var verbPhrase = formVerbPhrase() | ||
return nounPhrase+' '+verbPhrase | ||
callback(nounPhrase+' '+verbPhrase) | ||
} | ||
@@ -40,0 +40,0 @@ } |
{ | ||
"name": "crazyhorse", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "This module takes sentences and remixes them into a different semi-coherent sentence.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -84,3 +84,3 @@ crazyhorse | ||
crazyhorse(list_of_sentences, 5, function(remixed_sentence){ | ||
crazyhorse(list_of_sentences, function(remixed_sentence){ | ||
@@ -87,0 +87,0 @@ console.log(remixed_sentence) |
12049