spelling-variants-ja

    0.1.1 • Public • Published

    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

    Keywords

    none

    Install

    npm i spelling-variants-ja

    DownloadsWeekly Downloads

    1

    Version

    0.1.1

    License

    Apache-2.0

    Unpacked Size

    31.2 MB

    Total Files

    241

    Last publish

    Collaborators

    • marmooo