add eng wordlist
This commit is contained in:
File diff suppressed because one or more lines are too long
1
app/words_ngerman.json
Normal file
1
app/words_ngerman.json
Normal file
File diff suppressed because one or more lines are too long
@@ -1,6 +1,9 @@
|
|||||||
fs = require('fs');
|
fs = require('fs');
|
||||||
|
|
||||||
fs.readFile('/usr/share/dict/ngerman', 'utf8', function(err, data) {
|
var dict = '/usr/share/dict/american-english';
|
||||||
|
//var dict = '/usr/share/dict/ngerman';
|
||||||
|
|
||||||
|
fs.readFile(dict, 'utf8', function(err, data) {
|
||||||
if (err) {
|
if (err) {
|
||||||
return console.log(err);
|
return console.log(err);
|
||||||
}
|
}
|
||||||
@@ -63,6 +66,6 @@ fs.readFile('/usr/share/dict/ngerman', 'utf8', function(err, data) {
|
|||||||
|
|
||||||
|
|
||||||
console.log('final result');
|
console.log('final result');
|
||||||
console.log(matchingWordlist);
|
console.log(JSON.stringify(matchingWordlist));
|
||||||
process.exit(0);
|
process.exit(0);
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user