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
Sam Machin 2d28a2304f
Update package.jsons for mono-repo (#851)
Update the package.json for each node to point to the directory within the repo that hosts the code for the package in question.  as per https://docs.npmjs.com/cli/v7/configuring-npm/package-json#repository
2021-11-02 15:22:30 +00:00
..
72-wordpos.html Update licenses and packages for all nodes 2016-11-06 20:26:19 +00:00
72-wordpos.js Update licenses and packages for all nodes 2016-11-06 20:26:19 +00:00
LICENSE Update licenses and packages for all nodes 2016-11-06 20:26:19 +00:00
package.json Update package.jsons for mono-repo (#851) 2021-11-02 15:22:30 +00:00
README.md update analysis and utility nodes info style 2016-03-02 13:27:52 +00:00

node-red-node-wordpos

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

Install

Run the following command in your Node-RED user directory - typically ~/.node-red

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).