mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-06 11:01:00 +08:00
removed to lower case , german nouns need to be capitalised
This commit is contained in:
parent
9a239d7c16
commit
4e564ddbec
1 changed files with 3 additions and 3 deletions
|
|
@ -111,14 +111,14 @@ function initWords() {
|
|||
while (randomWord.indexOf(' ') > -1) {
|
||||
randomWord = language[Math.floor(Math.random() * language.length)];
|
||||
}
|
||||
wordsList.push(randomWord.toLowerCase());
|
||||
wordsList.push(randomWord);
|
||||
for (let i = 1; i < wordsBound; i++) {
|
||||
randomWord = language[Math.floor(Math.random() * language.length)];
|
||||
previousWord = wordsList[i - 1];
|
||||
while (randomWord == previousWord || (!config.punctuation && randomWord == "I") || randomWord.indexOf(' ') > -1) {
|
||||
randomWord = language[Math.floor(Math.random() * language.length)];
|
||||
}
|
||||
wordsList.push(randomWord.toLowerCase());
|
||||
wordsList.push(randomWord);
|
||||
}
|
||||
|
||||
} else if (config.mode == "custom") {
|
||||
|
|
@ -180,7 +180,7 @@ function buildSentences() {
|
|||
}
|
||||
|
||||
function addWord() {
|
||||
let language = words[config.language]
|
||||
let language = words[config.language];
|
||||
let randomWord = language[Math.floor(Math.random() * language.length)];
|
||||
while (randomWord.indexOf(' ') > -1) {
|
||||
randomWord = language[Math.floor(Math.random() * language.length)];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue