Can you guys help me figure out a simple way of working with sentences?

32 views
Skip to first unread message

Marko S

unread,
Jul 27, 2016, 1:04:45 PM7/27/16
to Node-RED
So with this Mycroft AI STT I get strings of what I say into Node-red, now I'm doing some detection of words with .includes method, but I'd rather use something more elegant and easy :).

.Something like a node for that, does anyone know of such a node or willing to do it...I heard I could do regex with the switch node but regex is hard and node-red is about being simple, this is not an option currently.

 If someone has an idea please show an example. Thanks!

Nicholas O'Leary

unread,
Jul 27, 2016, 5:36:27 PM7/27/16
to Node-RED

Hard to give an example if you don't give us an example of the sort of sentence you get and what you want to match...

The switch node has a 'contains' option that matches if the property contains the text specified - no regex needed.

Nick


--
http://nodered.org
 
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages