about summary refs log tree commit diff stats
path: root/js
diff options
context:
space:
mode:
authorelioat <hi@eli.li>2023-12-30 16:33:10 -0500
committerelioat <hi@eli.li>2023-12-30 16:33:10 -0500
commitf2867bea4a102b8cdd9814a6c264a69cefa263ba (patch)
treefff3429d18fe5b11e49f6a36f345418db0cf2245 /js
parent619383d6bcf717444d042b099e7cc534e55a96b8 (diff)
downloadtour-f2867bea4a102b8cdd9814a6c264a69cefa263ba.tar.gz
*
Diffstat (limited to 'js')
-rw-r--r--js/bird-words/beak.js2
-rw-r--r--js/bird-words/browser-beak.js2
-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