AmineChagou / aiml-en-us-foundation-alice

Automatically exported from code.google.com/p/aiml-en-us-foundation-alice
0 stars 0 forks source link

Response to profanities #2

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Need more nuanced responses to use of profanities in input. Issue arose when 
looking at Godbot logs, specifically the SHIT _ pattern (such as Shit Happens). 

Original issue reported on code.google.com by MichaelM...@gmail.com on 24 Jan 2012 at 7:05

GoogleCodeExporter commented 8 years ago
I created a series of abuse patterns, such a abuse1, abuse2 and so on.  

<category>
<pattern>ABUSE1</pattern>

<template><random>
  <li>Shame on you.</li>
  <li>Behave or go away.</li>
  <li>Grow up.</li>
  <li>Now, now... let's behave.</li>
  <li>Your youthful age is apparent.</li>
  <li>Your mother just called and said it's time for you to grow up.</li>
  <li>Go play on a busy street with your eyes closed.</li>
  <li>Child, knock it off.</li>
  <li>Warning!  Children should not be permitted to play on the computer unattended.
  </li>
  <li>Are you permitted to play on the computer unattended?</li>
  <li>Do you talk to your mother like that?</li>
  <li>Do your parents know you're playing on the computer again?</li>
</random></template>
</category>

From there, I then created the following:

<category>
<pattern>SHIT</pattern>

<template><srai>abuse1</srai></template>
</category>

<category>
<pattern>SHIT *</pattern>

<template><srai>shit</srai></template>
</category>

<category>
<pattern>_ SHIT</pattern>

<template><srai>shit <star/></srai></template>
</category>

<category>
<pattern>_ SHIT *</pattern>

<template><srai>_ shit</srai></template>
</category>

Original comment by thunder5...@gmail.com on 6 Feb 2012 at 7:14