Convert Natural Language into a file/directory path
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
machines
tests
.editorconfig
.gitignore
.jshintrc
.npmignore
LICENSE
README.md
index.js
package.json

README.md

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](https://badges.gitter.im/Join Chat.svg)

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