Skip to content

Commit 4e564dd

Browse files
committed
removed to lower case , german nouns need to be capitalised
1 parent 9a239d7 commit 4e564dd

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

public/js/script.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,14 @@ function initWords() {
111111
while (randomWord.indexOf(' ') > -1) {
112112
randomWord = language[Math.floor(Math.random() * language.length)];
113113
}
114-
wordsList.push(randomWord.toLowerCase());
114+
wordsList.push(randomWord);
115115
for (let i = 1; i < wordsBound; i++) {
116116
randomWord = language[Math.floor(Math.random() * language.length)];
117117
previousWord = wordsList[i - 1];
118118
while (randomWord == previousWord || (!config.punctuation && randomWord == "I") || randomWord.indexOf(' ') > -1) {
119119
randomWord = language[Math.floor(Math.random() * language.length)];
120120
}
121-
wordsList.push(randomWord.toLowerCase());
121+
wordsList.push(randomWord);
122122
}
123123

124124
} else if (config.mode == "custom") {
@@ -180,7 +180,7 @@ function buildSentences() {
180180
}
181181

182182
function addWord() {
183-
let language = words[config.language]
183+
let language = words[config.language];
184184
let randomWord = language[Math.floor(Math.random() * language.length)];
185185
while (randomWord.indexOf(' ') > -1) {
186186
randomWord = language[Math.floor(Math.random() * language.length)];

0 commit comments

Comments
 (0)