ponctuation

This commit is contained in:
gauthiier 2016-11-21 16:39:31 +01:00
parent 2ef6581a95
commit 782bd00d11

View File

@ -33,6 +33,10 @@ var chance = require('chance').Chance(); // npm install --save chance
const pattern_1 = ['How do you do?', 'Wazzup?'];
const pattern_2 = ['Why?', 'No', "ok"];
// helpful punctuation
var ponctuation = ['!', '.', '...'];
/**
* Iterates through and array of clauses or words and
* search them inside a given sentence (msg). Returns