// Path: alice-src/bitoflife/chatterbean/util/Escaper.java
// public static String escapeRegex(String splitter)
// {
//   String special = "";
//   try
//   {
//     splitter = splitter.replaceAll("\\\\", "\\\\\\\\");
// 
//     for (int i = 0, n = regex.length; i < n; i++)
//     {
//       special = regex[i];
//       splitter = splitter.replaceAll(special, "\\" + special);
//     }
//   }
//   catch (RuntimeException e)
//   {
//     throw new RuntimeException(e.getMessage() + "\nWhen trying to escape \"" + special + "\" in \"" + splitter + "\"", e);
//   }
// 
//   return splitter;
// }


import org.xml.sax.Attributes;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
import static bitoflife.chatterbean.util.Escaper.escapeRegex;
    section = substitutions.get("correction");
  }
  
  public void startPerson(Attributes attributes)
  {
    section = substitutions.get("person");
  }
  
  public void startPerson2(Attributes attributes)
  {
    section = substitutions.get("person2");
  }
  
  public void startGender(Attributes attributes)
  {
    section = substitutions.get("gender");
  }
  
  public void startProtection(Attributes attributes)
  {
    section = substitutions.get("protection");
  }
  
  public void startPunctuation(Attributes attributes)
  {
    section = substitutions.get("punctuation");
  }
  
  public void startSubstitute(Attributes attributes)
  {
// Path: alice-src/bitoflife/chatterbean/util/Escaper.java
// public static String escapeRegex(String splitter)
// {
//   String special = "";
//   try
//   {
//     splitter = splitter.replaceAll("\\\\", "\\\\\\\\");
// 
//     for (int i = 0, n = regex.length; i < n; i++)
//     {
//       special = regex[i];
//       splitter = splitter.replaceAll(special, "\\" + special);
//     }
//   }
//   catch (RuntimeException e)
//   {
//     throw new RuntimeException(e.getMessage() + "\nWhen trying to escape \"" + special + "\" in \"" + splitter + "\"", e);
//   }
// 
//   return splitter;
// }


// Path: alice-src/bitoflife/chatterbean/parser/SubstitutionBuilder.java
import org.xml.sax.Attributes;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
import static bitoflife.chatterbean.util.Escaper.escapeRegex;

    section = substitutions.get("correction");
  }
  
  public void startPerson(Attributes attributes)
  {
    section = substitutions.get("person");
  }
  
  public void startPerson2(Attributes attributes)
  {
    section = substitutions.get("person2");
  }
  
  public void startGender(Attributes attributes)
  {
    section = substitutions.get("gender");
  }
  
  public void startProtection(Attributes attributes)
  {
    section = substitutions.get("protection");
  }
  
  public void startPunctuation(Attributes attributes)
  {
    section = substitutions.get("punctuation");
  }
  
  public void startSubstitute(Attributes attributes)
  {
    String find = escapeRegex(attributes.getValue(0));