Search code examples
aiml

AIML 2.0 - multiple <set> in <pattern>


My problem is that I'm trying to use multiple <set> in <pattern> tag but my core (in this case, Pandorabots) is not recognizing what I wrote. I thought the problem was the multiple set tag in the pattern tag. With just one, it works.

So here's the slice of aiml:

<category>
    <pattern>^ <set>components</set> ^ <set>desc_broken</set></pattern>
    <template>Test answer</template>
</category>

And the relative sets:

components.set

[
    ["ENGINE"],
    ["FILTERS"],
    ["CARBURETORS"]
]

desc_broken.set

[
    ["BROKEN"]
]

My goal is to match strings like "My engine is broken" or, more general: "something CAR PART something ADJECTIVE something"


Solution

  • The documentation does not specify either way if it supports or does not support the usage of multiple <set>...</set> statements within the <pattern>...</pattern>.