|
|
@@ -1,4 +1,14 @@ |
|
|
|
var dictionary; |
|
|
|
|
|
|
|
fetch('typo/dictionaries/en_US/en_US.aff') |
|
|
|
.then(response => response.text()) |
|
|
|
.then(aff => fetch('typo/dictionaries/en_US/en_US.dic') |
|
|
|
.then(response => response.text()) |
|
|
|
.then(dic => { |
|
|
|
dictionary = new Typo('en_US', aff, dic); |
|
|
|
})); |
|
|
|
|
|
|
|
function isValidWord(str) { |
|
|
|
return true; |
|
|
|
return dictionary.check(str); |
|
|
|
} |
|
|
|
|