1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00
node-red-nodes/analysis/wordpos
2015-05-29 14:58:34 +01:00
..
72-wordpos.html Migrate icons. 2014-09-03 16:12:26 +01:00
72-wordpos.js Update node-red-nodes sample, analysis, storage and time nodes to use strict and pass jshint scan 2014-06-28 23:37:19 +01:00
LICENSE Update swearfilter and wordpos as npms 2014-07-06 21:29:30 +01:00
package.json Update Package.json file for all node-red-nodes to be Apache-2.0 2015-05-29 14:58:34 +01:00
README.md Update swearfilter and wordpos as npms 2014-07-06 21:29:30 +01:00

node-red-node-wordpos

A Node-RED node that breaks a sentance into the various parts of (English) speech.

Install

Run the following command in the root directory of your Node-RED install

npm install node-red-node-wordpos

Usage

Uses the wordpos npm to analyse the msg.payload and classify the part-of-speech of each word.

The resulting message has a msg.pos object added with the results split into the following:

nouns:[],
verbs:[],
adjectives:[],
adverbs:[],
rest:[]

Note: a word may appear in multiple POS (eg, 'great' is both a noun and an adjective).