=w=
This commit is contained in:
parent
624293168f
commit
a39a186cf9
8
main.js
8
main.js
@ -62,7 +62,7 @@ document.addEventListener("keydown", (e) => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
function stripWord(word) {
|
function stripWord(word) {
|
||||||
return word.replace(/[^a-zA-Z]/g, "");
|
return word.replace(/[^a-zA-Z-]/gu, "");
|
||||||
}
|
}
|
||||||
|
|
||||||
heonianVowels = {
|
heonianVowels = {
|
||||||
@ -150,12 +150,12 @@ function loadDictionary() {
|
|||||||
searchDictionary[keys[i]].push(keys[i]);
|
searchDictionary[keys[i]].push(keys[i]);
|
||||||
|
|
||||||
//add: romanized word
|
//add: romanized word
|
||||||
searchDictionary[keys[i]].push(heonianToRoman(keys[i]));
|
searchDictionary[keys[i]].push(stripWord(heonianToRoman(keys[i])));
|
||||||
|
|
||||||
//add: translations, meanings
|
//add: translations, meanings
|
||||||
for (let o = 0; o < values[i].length; o++) {
|
for (let o = 0; o < values[i].length; o++) {
|
||||||
searchDictionary[keys[i]].push(values[i][o]["meaning"]);
|
searchDictionary[keys[i]].push(stripWord(values[i][o]["meaning"]));
|
||||||
searchDictionary[keys[i]].push(values[i][o]["translation"]);
|
searchDictionary[keys[i]].push(stripWord(values[i][o]["translation"]));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,5 +28,16 @@
|
|||||||
" ": "i hope ari can see snAAAAow"
|
" ": "i hope ari can see snAAAAow"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
],
|
||||||
|
"": [
|
||||||
|
{
|
||||||
|
"type": "cutie",
|
||||||
|
"meaning": "very cute person who i love",
|
||||||
|
"translation": "yes",
|
||||||
|
"notes": "ari is VERY CUTE",
|
||||||
|
"examples": {
|
||||||
|
" ": "dlfjkdgkdjgkdfjgkjkf"
|
||||||
|
}
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user