diff --git a/src/js/script.js b/src/js/script.js index 3ae1a8b29..ed5efc594 100644 --- a/src/js/script.js +++ b/src/js/script.js @@ -726,6 +726,34 @@ function punctuateWord(previousWord, currentWord, index, maxindex) { ) { //1% chance to add quotes word = `"${word}"`; + } else if ( + Math.random() < 0.01 && + getLastChar(previousWord) != "," && + getLastChar(previousWord) != "." + ) { + //1% chance to add single quotes + word = `'${word}'`; + } else if ( + Math.random() < 0.01 && + getLastChar(previousWord) != "," && + getLastChar(previousWord) != "." + ) { + //1% chance to add parentheses + word = `(${word})`; + } else if ( + Math.random() < 0.01 && + getLastChar(previousWord) != "," && + getLastChar(previousWord) != "." + ) { + //1% chance to add braces + word = `{${word}}`; + } else if ( + Math.random() < 0.01 && + getLastChar(previousWord) != "," && + getLastChar(previousWord) != "." + ) { + //1% chance to add brackets + word = `[${word}]`; } else if (Math.random() < 0.01) { //1% chance to add a colon word = word + ":";