Re-added morse and a few other 'name' words. Removed raw word list.
This commit is contained in:
@@ -8,6 +8,14 @@ const dictionary = require('./dictionary_old.json');
|
||||
async function init() {
|
||||
const notNameWords = words.filter((word) => word.charAt(0) === word.charAt(0).toLowerCase()); // don't include names for places, products, people, etc.
|
||||
|
||||
/*
|
||||
words.forEach((word) => {
|
||||
if (word.charAt(0) === word.charAt(0).toUpperCase()) {
|
||||
console.log(word);
|
||||
}
|
||||
});
|
||||
*/
|
||||
|
||||
const definitions = Object.fromEntries(notNameWords.map((word) => {
|
||||
const normalizedWord = word.normalize('NFD').replace(/\p{Diacritic}/ug, '').toLowerCase().trim();
|
||||
const definition = dictionary[normalizedWord];
|
||||
|
||||
Reference in New Issue
Block a user