IBM Watson™ Ideas

Welcome to the IBM Watson™ Ideas Portal


We welcome and appreciate your feedback on IBM Watson™ Products to help make them even better than they are today!


If you are looking for troubleshooting help or wondering how to use our products and services, please check the IBM Watson™ documentation. Please do not use the Ideas Portal for reporting bugs - we ask that you report bugs or issues with the product by contacting IBM support.


Before you submit an idea, please perform a search first as a similar idea may have already been reported in the portal.


If a related idea is not yet listed, please create a new idea and include with it a description which includes expected behavior as well as why having this feature would improve the service and how it would address your use case.

Allow case insensitive mode for pattern matching

Currently, when defining an entity value in pattern mode, the pattern matching is always case sensitive.

Since we are handling user generated content (utterances) here, we cannot rely on the correct spelling (correct uppercase/lowercase). This is especially a challenge in the German language where all nouns are normally (rule of grammar) spelled with an uppercase first letter. In the regular expressions we would therefore have to explicitly add two variants for each of these cases where a word could be spelled with either uppercase or lowercase initial letter.

Typically, every regular expression engine takes a flag for "case insensitive" matching. This flag should be exposed so the WA user can choose between case sensitive or case insensitive matching for each regular expression individually.

The benefit would be a significant reduction of the complexity (and length) of the regular expressions.

  • Guest
  • Jul 13 2018
  • Attach files
  • Jaysen Ollerenshaw commented
    August 2, 2018 03:51

    Just put (?i) at the start of the pattern if you want it to be case insensitive.  For example:

    Here's a pattern that matched "1 Month " and "5 MON ":
    (?i)\d+ ?(month|mon|mth|m)\b