1.1.6 • Published 9 months ago

manimani v1.1.6

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
9 months ago

manimani

Converts Japanese to romaji.

Installation

npm i manimani

Usage

var manimani = require("../src/manimani");

manimani.tokenize("path/to/dictionary/dir/", "柿の種", function(moras) {
    console.log(JSON.stringify(moras, null, 2))
});
[
  {
    "from": "か",
    "pos": 0,
    "node": [
      {
        "pos": 0,
        "val": "k",
        "children": [
          {
            "pos": 1,
            "val": "a",
            "children": []
          }
        ]
      },
      {
        "pos": 0,
        "val": "c",
        "children": [
          {
            "pos": 1,
            "val": "a",
            "children": []
          }
        ]
      }
    ]
  },
  {
    "from": "き",
    "pos": 1,
    "node": [
      {
        "pos": 0,
        "val": "k",
        "children": [
          {
            "pos": 1,
            "val": "i",
            "children": []
          }
        ]
      }
    ]
  },
  {
    "from": "の",
    "pos": 2,
    "node": [
      {
        "pos": 0,
        "val": "n",
        "children": [
          {
            "pos": 1,
            "val": "o",
            "children": []
          }
        ]
      }
    ]
  },
  {
    "from": "た",
    "pos": 3,
    "node": [
      {
        "pos": 0,
        "val": "t",
        "children": [
          {
            "pos": 1,
            "val": "a",
            "children": []
          }
        ]
      }
    ]
  },
  {
    "from": "ね",
    "pos": 4,
    "node": [
      {
        "pos": 0,
        "val": "n",
        "children": [
          {
            "pos": 1,
            "val": "e",
            "children": []
          }
        ]
      }
    ]
  }
]
1.1.6

9 months ago

1.1.5

9 months ago

1.1.4

10 months ago

1.1.3

10 months ago

1.1.2

10 months ago

1.1.1

10 months ago

1.1.0

10 months ago

1.0.0

10 months ago

0.1.1

10 months ago

0.1.0

10 months ago

0.0.2

10 months ago

0.0.1

10 months ago