---
title: "Comment by Akshat Mahla on \"Adding Non-English PII Detection to Kong AI Sanitizer\n\" | Hashnode"
description: "how does replacing the original values that were sanitized from PII plugin work? From what I know, presidio only replaces original value back if we tell it what"
url: "https://hashnode.com/posts/adding-non-english-pii-detection-to-kong-ai-sanitizer/69b3dc234c737221668c1932/comment/69e8627be436727814e049ee"
---

[Discussion](https://hashnode.com/posts/adding-non-english-pii-detection-to-kong-ai-sanitizer/69b3dc234c737221668c1932)

Comment [Adding Non-English PII Detection to Kong AI Sanitizer](https://hashnode.com/posts/adding-non-english-pii-detection-to-kong-ai-sanitizer/69b3dc234c737221668c1932)

[Akshat Mahla](https://hashnode.com/@akshatmahla)

[Apr 22](https://hashnode.com/posts/adding-non-english-pii-detection-to-kong-ai-sanitizer/69b3dc234c737221668c1932/comment/69e8627be436727814e049ee)

how does replacing the original values that were sanitized from PII plugin work?  
From what I know, presidio only replaces original value back if we tell it what all places it needs to do the replacement. do you have a wrapper to get response from LLM and put the original values back, by keeping a map of values that were sanitized. Also, the custom pattern match has fields: Name, Regex, Score but does not have context field.. without context, the score is irrelevant as regex matches are binary. and for the check box fields of Built-in categories do we have a score defined as some default values ? do these filters have some threshold score..?
