spelling-variants-ja
Japanese spelling variants dictionary.
Build
- install SudachiDict
- install NAIST-jdic
deno run --allow-read --allow-write build.js
bash build.sh
Usage (Deno)
// git clone https://github.com/marmooo/spelling-variants-ja
import { SpellingVariantsJa } from "spelling-variants-ja/mod.js";
const dict = await SpellingVariantsJa.load("spelling-variants-ja/spelling-variants.csv");
dict.get('つく'); // --> [付く, 点く, etc.]
Usage (Node.js)
// npm install spelling-variants-ja
const YomiDict = require("spelling-variants-ja");
async function main() {
const dict = await SpellingVariantsJa.load();
dict.get('つく'); // --> [付く, 点く, etc.]
}
main();
License
Apache-2.0
Attribution
- SudachiDict is licensed under the Apache-2.0.