Skip to content

Instantly share code, notes, and snippets.

@wardbekker
Created September 9, 2011 07:37
Show Gist options
  • Save wardbekker/1205681 to your computer and use it in GitHub Desktop.
Save wardbekker/1205681 to your computer and use it in GitHub Desktop.
keyword_server_name(Keyword) ->
integer_to_list(
erlang:phash2(
porter:stem(
string:to_lower(Keyword)
)
)
) ++ "_keyword_server".
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment