Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

machinepack-naturalpath

0.1.0 • Public • Published

node-machine logo machinepack-naturalpath

node-machine logo machinepack-naturalpath

Docs   Browse other machines   FAQ   Newsgroup

Convert Natural Language into a file/directory path

Installation   NPM version Build Status

$ npm install machinepack-naturalpath

Usage

For the latest usage documentation, version information, and test status of this module, see http://node-machine.org/machinepack-naturalpath. The generated manpages for each machine contain a complete reference of all expected inputs, possible exit states, and example return values. If you need more help, or find a bug, jump into Gitter or leave a message in the project newsgroup.

Examples

var naturalpath = require('machinepack-naturalpath');
// Convert natural language to path
naturalpath.convert({
  string: "..."
}).exec({
  success: function(absPath) {
    console.log(absPath); // Print absolute path!
  }
})

Input (string):

  • "Into Google Drive into School into 2015 2016 into Cryptography"
  • "Go to Google Drive go into School go into 2015 2016 and find Cryptography folder"
  • "Cryptography in 2015 2016 in School in Google Drive"
  • "Cryptography under 2015 2016 under School under Google Drive"

Output (absPath):

  • "/Users/glavin/Google Drive/School/2015-2016/CSCI 4423 - Cryptography"

About   Gitter

This is a machinepack, an NPM module which exposes a set of related Node.js machines according to the machinepack specification. Documentation pages for the machines contained in this module (as well as all other NPM-hosted machines for Node.js) are automatically generated and kept up-to-date on the public registry. Learn more at http://node-machine.org/implementing/FAQ.

License

MIT © 2015 contributors

install

npm i machinepack-naturalpath

Downloadsweekly downloads

2

version

0.1.0

license

MIT

repository

githubgithub

last publish

collaborators

  • avatar