1.2.0 • Published 2 years ago

@mathquis/node-rustling v1.2.0

Weekly downloads
88
License
ISC
Repository
github
Last release
2 years ago

node-rustling

Build Status npm version

Node.js bindings for Snips rustling-ontology parser.

Supported Output

OutputOutputKind
IntegerNumber
FloatNumber
OrdinalOrdinal
TemperatureTemperature
TimeTime
TimeIntervalTime
AmountOfMoneyAmountOfMoney
DurationDuration

Get started

Install rust

curl https://sh.rustup.rs -sSf | sh

Installation

npm i @mathquis/node-rustling

Usage

const Rustling = require('@mathquis/node-rustling')

const Parser = new Rustling.Parser()

let result

result = Parser.parse("trente deux", ["Number"])
console.log(result)
// Outputs: [ { kind: 'Number', value: 32 } ]

result = parser.parse("samedi prochain à cinq heures du matin et trente sept minutes")
console.log(result)
/* Outputs: [ { kind: 'InstantTime',
    value: '2020-02-01 05:37:00',
    grain: 'Minute',
    precision: 'Exact' } ]
*/
1.2.0

2 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.9

3 years ago

1.0.10

3 years ago

1.0.8

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago