1.1.6 • Published 6 months ago

manimani v1.1.6

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
6 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

6 months ago

1.1.5

7 months ago

1.1.4

7 months ago

1.1.3

7 months ago

1.1.2

7 months ago

1.1.1

7 months ago

1.1.0

7 months ago

1.0.0

8 months ago

0.1.1

8 months ago

0.1.0

8 months ago

0.0.2

8 months ago

0.0.1

8 months ago