Skip to content

Instantly share code, notes, and snippets.

@sillypog
Created May 30, 2018 05:03
Show Gist options
  • Save sillypog/4d6c14a1d6978ef979f8a95cf97f0564 to your computer and use it in GitHub Desktop.
Save sillypog/4d6c14a1d6978ef979f8a95cf97f0564 to your computer and use it in GitHub Desktop.
Tree representation of profanity list
%{
"a" => %{"r" => %{"s" => %{"e" => %{"n" => %{"i" => %{"c" => :leaf}}}}}},
"b" => %{
"l" => %{"o" => %{"o" => %{"m" => %{"e" => %{"r" => %{"s" => :leaf}}}}}},
"o" => %{
"s" => %{"o" => %{"m" => :leaf}},
"u" => %{"n" => %{"d" => %{"e" => %{"r" => :leaf}}}}
}
},
"f" => %{"u" => %{"s" => %{"t" => %{"i" => %{"l" => %{"u" => %{"g" => %{"s" => :leaf}}}}}}}},
"s" => %{"u" => %{"f" => %{"f" => %{"r" => %{"a" => %{"g" => %{"e" => :leaf}}}}}}},
"z" => %{"o" => %{"u" => %{"n" => %{"d" => %{"e" => %{"r" => %{"k" => %{"i" => %{"t" => %{"e" => :leaf}}}}}}}}}}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment