spelling-variants-ja

Japanese spelling variants dictionary.


License
Apache-2.0
Install
npm install spelling-variants-ja@0.0.2

Documentation

spelling-variants-ja

Japanese spelling variants dictionary.

Build

  1. install SudachiDict
  2. install NAIST-jdic
  3. deno run --allow-read --allow-write build.js
  4. 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