stevepolitodesign/ruby_pii_filter: Filter PII from free text before sending it to external services or APIs, such as Chatbots.

25-Jul-2025 9
This is a proof of concept. Creates an interface for filtering personally identifiable information (PII) from free text, before sending it to external services or APIs, such as Chatbots. The majority of the filtering is supported by regular expressions, which were lifted from logstop. However, filtering names is more nuanced, and required MITIE Ruby. This means there's a dependency on a pre-trained model. This project assumes it lives alongside pii_filter.rb, but that is not a requirement.
Use coupon code:

RUBYONRAILS

to get 30% discount on our bundle!
Prepare for your next tech interview with our comprehensive collection of programming interview guides. Covering JavaScript, Ruby on Rails, React, and Python, these highly-rated books offer thousands of essential questions and answers to boost your interview success. Buy our 'Ultimate Job Interview Preparation eBook Bundle' featuring 2200+ questions across multiple languages. Ultimate Job Interview Preparation eBook Bundle