diff options
-rw-r--r-- | js/bird-words/beak.js | 2 | ||||
-rw-r--r-- | js/bird-words/browser-beak.js | 2 | ||||
-rw-r--r-- | js/bird-words/corpus.txt (renamed from js/bird-words/input.txt) | 0 |
3 files changed, 2 insertions, 2 deletions
diff --git a/js/bird-words/beak.js b/js/bird-words/beak.js index eca0067..7335a98 100644 --- a/js/bird-words/beak.js +++ b/js/bird-words/beak.js @@ -16,7 +16,7 @@ const prettyItUp = string => { return string.charAt(0).toUpperCase() + string.slice(1) + "!"; } -let corpus = fs.readFileSync('input.txt', 'utf8'); +let corpus = fs.readFileSync('corpus.txt', 'utf8'); let words = corpus.toLowerCase().replace(/[.,\/#!$%\^&\*;:{}=\-_`~()]/g,"").replace(/\n/g, " ").replace(/\s{2,}/g, " ").split(" "); let markovChain = new Map(); diff --git a/js/bird-words/browser-beak.js b/js/bird-words/browser-beak.js index de55bde..c76f7f6 100644 --- a/js/bird-words/browser-beak.js +++ b/js/bird-words/browser-beak.js @@ -15,7 +15,7 @@ function prettyItUp(string) { return string.charAt(0).toUpperCase() + string.slice(1) + "!"; } -fetch('input.txt') +fetch('corpus.txt') .then(response => response.text()) .then(data => { let corpus = data; diff --git a/js/bird-words/input.txt b/js/bird-words/corpus.txt index 55e1fb8..55e1fb8 100644 --- a/js/bird-words/input.txt +++ b/js/bird-words/corpus.txt |