{
  "language": "en",
  "category": "context",
  "rules": [
    {
      "name": "compound_collapse",
      "pattern": "\\band any potential\\b",
      "replacement": "",
      "context": "all",
      "category": "context",
      "minIntensity": "full"
    },
    {
      "name": "explanatory_prefix",
      "pattern": "\\b(?:The function appears to be handling|The code seems to|The class is|This module is)\\b",
      "replacement": "Function:",
      "replacementMap": {
        "the function appears to be handling": "Function:",
        "the code seems to": "Code:",
        "the class is": "Class:",
        "this module is": "Module:"
      },
      "context": "all",
      "category": "context",
      "minIntensity": "lite"
    },
    {
      "name": "question_to_directive",
      "pattern": "\\b(?:Can you explain why|Could you show me how|Would you tell me|Can you tell me)\\b\\s*",
      "replacement": "Explain why ",
      "replacementMap": {
        "can you explain why": "Explain why ",
        "could you show me how": "Show how ",
        "would you tell me": "Tell me ",
        "can you tell me": "Tell me "
      },
      "context": "user",
      "category": "context",
      "minIntensity": "lite"
    },
    {
      "name": "context_setup",
      "pattern": "\\b(?:I have the following code|Here is my code|Below is the code)\\b\\s*[:.]?\\s*",
      "replacement": "Code:",
      "context": "user",
      "category": "context",
      "minIntensity": "lite"
    },
    {
      "name": "intent_clarification",
      "pattern": "\\b(?:What I'm trying to do is|My objective is to|What I need is|I'm aiming to)\\b\\s*",
      "replacement": "Goal:",
      "context": "user",
      "category": "context",
      "minIntensity": "lite"
    },
    {
      "name": "background_removal",
      "pattern": "\\b(?:As you may know,?\\s*|As we discussed earlier,?\\s*)",
      "replacement": "",
      "context": "all",
      "category": "context",
      "minIntensity": "lite"
    },
    {
      "name": "meta_commentary",
      "pattern": "^(?:Note that|Keep in mind that|Remember that)\\b\\s*",
      "replacement": "",
      "context": "all",
      "category": "context",
      "minIntensity": "lite"
    },
    {
      "name": "purpose_statement",
      "pattern": "\\b(?:for the purpose of|with the goal of|in an effort to|for every)\\b",
      "replacement": "for",
      "replacementMap": {
        "for the purpose of": "for",
        "with the goal of": "to",
        "in an effort to": "to",
        "for every": "per"
      },
      "context": "all",
      "category": "context",
      "minIntensity": "lite"
    }
  ]
}
