how would I change from is to are.if I say like apples instead of I like apple.using map to the map the foods in aiml.
here is my aiml script respond,question and learn.txt
if the person says I like apples.i would want the response to be what are apples?if the person says I like apple.i would want the response to be what is apple?
how would I use either is for a singular noun or are for a plural noun in the template?
<category> <pattern>i like *</pattern> <template>what <self>if (star.endsWith("s")) { "are"; } else { "is"; }</self> <star/>. </template>
sometimes people do not use good English.They may type it that way or do that on purpose to test how advanced the chatbot is.
there is a error on this blog page when you first enter it.I enter the blog page from somewhere else and it worked.that needs to be fixed.
what if it asked what type of fruit juice do you like?you could say for a response I like apple.wouldn't that confuse it if i did not use a code like the aiml code you posted?