diff --git a/src/js/script.js b/src/js/script.js index fe36b760a..2956a3df4 100644 --- a/src/js/script.js +++ b/src/js/script.js @@ -733,6 +733,14 @@ function punctuateWord(previousWord, currentWord, index, maxindex) { ) { //1% chance to add a dash word = "-"; + } else if ( + Math.random() < 0.01 && + getLastChar(previousWord) != "," && + getLastChar(previousWord) != "." && + getLastChar(previousWord) != ";" + ) { + //1% chance to add semicolon + word = word + ";"; } else if (Math.random() < 0.2 && getLastChar(previousWord) != ",") { //2% chance to add a comma word += ",";