0.0.1 • Published 6 years ago

@datagica/parse-calendar-events v0.0.1

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

Parse Items

If a calendar event is missing you can create a pull request

Installation

$ npm i @datagica/parse-calendar-events

Usage

Example:

await parse("anniversaire sabine")

Output:

  [
    {
      "ngram": "anniversaire",
      "position": {
        "begin": 0,
        "end": 12,
        "sentence": 0,
        "word": 0,
      },
      "score": 1,
      "value": {
        "aliases": {
          "en": [
            "bday",
            "birthday",
            "birthdays",
          ],
          "fr": [
            "anniv",
            "anniversaire",
            "anniversaires",
          ],
        },
        "category": "party",
        "icons": {},
        "id": "birthday",
        "label": {
          "en": "Birthday",
          "fr": "Anniversaire",
        },
        "locations": [
          "home",
          "bar",
          "park",
        ],
        "plural": {
          "en": "Birthdays",
          "fr": "Anniversaires",
        },
        "recommend": [
          "gift",
        ],
      },
    },
  ]