Typo.js
Typo.js copied to clipboard
All the words are marked false
In my React App, I use it like this:
var Typo = require("typo-js");
var dictionary = new Typo("en_US", false, false, { dictionaryPath: "typo-js/dictionaries" });
the borwser can load en_us files correctly, but when I use dictionary.check(), all the words return the false.
In my case, the browser did not load the files correctly. So I copied the library dictionaries to the public directory and it's working correctly now
const dictionary = new Typo("en_US");