AI Zone Admin Forum Add your forum

NEWS: Chatbots.org survey on 3000 US and UK consumers shows it is time for chatbot integration in customer service!read more..

How to handle singular and plurals
 
 

Hi,

I would like to know how to handle both singular and plural to match the same pattern.
Ex: “get Statement” and “get Statements”
should show the same result without writing two separate patterns or without using ”<set>” tag.

Please advise me on this.

 

 
  [ # 1 ]

You will need to write 2 categories, where one <srai>s to the other.

 

 
  [ # 2 ]

Hi, Jetti, and welcome to chatbots.org. smile

Sadly, given the restrictions you’ve mentioned regarding use of <set> tags in the pattern, there is no way to have one pattern handle both the singular and plural versions of most words. AIML isn’t designed with that sort of complexity in mind. I wish I had better news than that, but I don’t. sorry.

 

 
  login or register to react