textlint for browser bundled with Japanese preset rules.
-
This file is also available at jsdelivr.net or unpkg.com.
-
kuromojin-external-dict-loader.js
This file is bundled in textlint.bundle.min.js
<script>
window.kuromojin = {
dicPath: "https://cdn.jsdelivr.net/npm/kuromoji@0.1.2/dict"
};
</script>
<script src="https://cdn.jsdelivr.net/npm/textlint-browser-runner@latest/dist/textlint.bundle.min.js"></script>
<script>
var linter = new Textlint(options);
linter.lintText('お刺身が食べれない').then(console.log).catch(console.log)
</script>
Or create your own bundle with textlint-bundler
Try here.