Hello,
How can I detect bad words using AIML?
e.g. user may say SEX word in 3 different ways. it can says it in the middle of the sentence, at the end if the sentence at the beginning, and juse onw word. sex.
I created AIML to do so:
<category>
sex</pattern>
<template>
BAD WORD
</template>
</category>
<category>
sex *</pattern>
<template>
BAD WORD
</template>
</category>
<category>
_ sex</pattern>
<template>
BAD WORD
</template>
</category>
<category>
_ sex *</pattern>
<template>
BAD WORD
</template>
</category>
but this is so frustrating to write this for every word.
Is there a shortest way of doing so?
Thanks