social_parser v0.2.0 SocialParser

SocialParser is used to parse out common social message commponents such as hashtags, mentions and urls.

Summary

Functions

Returns a list of hashtags for the given message

Returns a list of mentions for the given message using either the @name or +name identifiers

Functions

parse_hashtags(message)

Returns a list of hashtags for the given message

iex> SocialParser.parse_hashtags("some #message with #tags")
%{tags: ["#message", "#tags"]}
parse_mentions(message)

Returns a list of mentions for the given message using either the @name or +name identifiers

iex> SocialParser.parse_mentions("hello @john its +me")
%{mentions: ["@john", "+me"]}