0.0.1 • Published 6 years ago

@datagica/parse-nerves v0.0.1

Weekly downloads
1
License
GPL-3.0
Repository
github
Last release
6 years ago

Parse Nerves

If a nerve, license or copyright is missing you can create a pull request

Installation

$ npm i @datagica/parse-nerves

Usage

Example:

await parse('Dr Grey suspects it has to do with the pterygopalatine ganglion')

Output:

[
  {
    "ngram": "pterygopalatine ganglion",
    "value": {
      "id": "pterygopalatine-ganglion",
      "label": {
        "en": "Pterygopalatine ganglion"
      },
      "description": {
        "en": "Pterygopalatine ganglion"
      },
      "category": "nerve",
      "aliases": {
        "en": [
          "Pterygopalatine ganglion",
        ],
      },
    },
    "score": 1,
    "position": {
      "sentence": 0,
      "word": 9,
      "begin": 39,
      "end": 63
    }
  }
]