removed single and double quotes from russian with punctuation mode

This commit is contained in:
Jack 2020-12-05 13:54:10 +00:00
parent ea26cf18ec
commit b16ee7fe10

View file

@ -725,14 +725,16 @@ function punctuateWord(previousWord, currentWord, index, maxindex) {
} else if (
Math.random() < 0.01 &&
Misc.getLastChar(previousWord) != "," &&
Misc.getLastChar(previousWord) != "."
Misc.getLastChar(previousWord) != "." &&
config.language.split("_")[0] !== "russian"
) {
//1% chance to add quotes
word = `"${word}"`;
} else if (
Math.random() < 0.01 &&
Misc.getLastChar(previousWord) != "," &&
Misc.getLastChar(previousWord) != "."
Misc.getLastChar(previousWord) != "." &&
config.language.split("_")[0] !== "russian"
) {
//1% chance to add single quotes
word = `'${word}'`;