<commit_before>---
layout: page
title: String Deduplication
excerpt: "A performant algorithm for removing duplicate strings."
date:   2015-04-09 23:43:12
tags: programming
---

I wrote a simple algorithm for removing duplicate strings from an array while maintaining ordering. You can check out the source code and readme [on GitHub](https://github.com/hankmccoy/email-deduplication). I implemented this as a very simple React app using Babel and core-js for ES6 transpilation and webpack for script and style bundling.

<div class="deduplication-app-container" style="max-width:500px"></div>
<script src="https://raw.githack.com/HankMcCoy/email-deduplication/master/dist/bundle.js"></src><commit_msg>Remove inaccurate reference to core-js from post.<commit_after>---
layout: page
title: String Deduplication
excerpt: "A performant algorithm for removing duplicate strings."
date:   2015-04-09 23:43:12
tags: programming
---

I wrote a simple algorithm for removing duplicate strings from an array while maintaining ordering. You can check out the source code and readme [on GitHub](https://github.com/hankmccoy/email-deduplication). I implemented this as a very simple React app using Babel for ES6 transpilation and webpack for script and style bundling.

<div class="deduplication-app-container" style="max-width:500px"></div>
<script src="https://raw.githack.com/HankMcCoy/email-deduplication/master/dist/bundle.js"></src>
{'fraction_non_alphanumeric': 0.1002805049088359, 'fraction_numerical': 0.025245441795231416, 'mean_word_length': 5.2043478260869565, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1207803', 'n_tokens_mistral': 428, 'n_tokens_neox': 397, 'n_words': 149}