Socket
Socket
Sign inDemoInstall

sentence-intent

Package Overview
Dependencies
1
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    sentence-intent

Extract the intent and potential context of a sentence


Version published
Weekly downloads
5
Maintainers
1
Created
Weekly downloads
 

Readme

Source

sentence-intent

Build Status

Extract the intent and potential context of a sentence. This modules intended use is for routing command based statements by generalizing what the likely intent of the sentence is.

Installation

This library is distributed on npm. In order to add it as a dependency, run the following command:

$ npm install sentence-intent --save

Example Usage

const sentenceIntent = require('sentence-intent');

const intent = new sentenceIntent('Can you turn up the music?');

console.log('intent: ' + intent.getIntent());
console.log('context: ' + intent.getContext());

If for what ever reason it can not discover the intent or context they will be returned as undefined.

License

Apache 2.0 - See LICENSE for more information.

FAQs

Last updated on 11 Jun 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc