升级到我们的 Platinum 服务并让我们建立您的机器人给你
Bot Libre Forum : how would i change fronm is to are

RE: how would i change fronm is to are

通过 admin 发布 Jul 16 2018, 16:21

You cannot do that in AIML, but you could in a Self tag.
Something like:

<category>
<pattern>i like *</pattern>
<template>what <self>if (star.endsWith("s")) { "are"; } else { "is"; }</self> <star/>.
</template>

If your bot has Wiktionary enabled, you could also do more advanced things checking the word's #cardinality.

Note that "I like apple" is not valid grammar. "I like apples" would be correct.
For a singular you would use "I like the apple", in which case you can check for "the" in a pattern.
Trying to parse English or natural language in general is very advanced, there is an example in the Understanding Self script.
But you would need to understand programming for this.


Id: 22832492
发布: Jul 16 2018, 16:21
更新: Jul 17 2018, 9:33
答复: 0
的风景: 1155, 今天: 1, 周: 6, 一个月: 14
我敢肯定
标志后的进攻,或者在违反规则网站