My role includes helping developers and customers succeed in their cognitive use-cases. This blog post not only narrates why "watsonhelper" an ancillary node package for IBM Watson was developed but also demonstrates how it can help you.
A recent IBM Watson customer was building a chatbot using Watson conversation api available on IBM Bluemix. For the customer capturing phone numbers and email during the conversation was a key use-case. In order to help the customer I wrote this library so that they can offload their regex requirements to this library and completely focus on solving their key business problem with watson.
During my discussion with few other startups in Bangalore and Delhi I understood that this is a generic requirement that many would need. This motivated me to go ahead and publish this library as a node package. Now it is publicly available and anyone who has a same or similar use case can directly start consuming the library . The first version 1.0.x which has recently been released solves 3 key use-cases. Many different generic use-cases are also in pipeline and will be progressively released.
- Extract multiple phone number formats across different countries
- Extract multiple email formats across multiple domains
- Extract any custom information like invoiceno, ticketid, purchaseordernumber, UID etc by providing the regex pattern.
- Unit tested
- Examples enclosed
Package Location in Node Package Manager(NPM)
watsonhelper version 1.0.x
Extraction of one or more phone numbers, email or custom data(like invoiceno, ticketid, purchaseordernumber, UID etc ) from a user supplied text.
var helper = require('watsonhelper');
var phonelist = helper.phoneextractor("I am moving to hyderabad and my mobile number is +919538099898, You can also call me at 08042227967" );
var email = helper.emailextractor("I am moving to US and my email id is email@example.com, You can also email me at firstname.lastname@example.org" );
var invoiceno = helper.extractor("invoice number", "Your invoice is generated it is inv1105576", <REGEX STRING> );
Reporting issues, bugs or new feature request
We want to improve in progressive manner and would love to know the Issues/Bug/Feature Request about this package and get them resolved/implemented.
Collaborate and discuss interesting features in our Social Channel
Please free to reach out to us with your ideas and suggestions by joining our Slack Channel dedicated for watsonhelper.