<commit_before>= autolinks

Autolinks automatically replaces urls, emails, twitter handles and hashtags with html links

== Contributing to autolinks
 
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
* Fork the project.
* Start a feature/bugfix branch.<commit_msg>Update readme with Example<commit_after>= autolinks

Autolinks automatically replaces urls, emails, twitter handles and hashtags with html links

    # Text block to render
    text = "@thishandle #communicates with @thisotherhandle. This is a test string with some #hashtags and other types of #marked #content. winning! We're #1! <EMAIL>. We're also going to test some URL's: http://google.com, or http://google.com/, or http://google.co.uk."
    
    # Render out the HTML
    puts Autolinks.parse(text)
    
    => <a href="http://twitter.com/thishandle" target="_blank">@thishandle</a> <a href="http://twitter.com/search?q=%23communicates" target="_blank">#communicates</a> with <a href="http://twitter.com/thisotherhandle" target="_blank">@thisotherhandle</a>. This is a test string with some <a href="http://twitter.com/search?q=%23hashtags" target="_blank">#hashtags</a> and other types of <a href="http://twitter.com/search?q=%23marked" target="_blank">#marked</a> <a href="http://twitter.com/search?q=%23content" target="_blank">#content</a>. winning! We're <a href="http://twitter.com/search?q=%231" target="_blank">#1</a>! <a href="mailto:<EMAIL>" target="_blank"><EMAIL></a>. We're also going to test some URL's: <a href="http://google.com" target="_blank">google.com</a>, or <a href="http://google.com" target="_blank">google.com</a>/, or <a href="http://google.co.uk" target="_blank">google.co.uk</a>.

== Contributing to autolinks
 
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
* Fork the project.
* Start a feature/bugfix branch.
{'fraction_non_alphanumeric': 0.13972985561248252, 'fraction_numerical': 0.006054960409874243, 'mean_word_length': 4.933701657458563, 'pattern_counts': {'":': 0, '<': 28, '<?xml version=': 0, '>': 29, 'https://': 0, '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': '2035394', 'n_tokens_mistral': 663, 'n_tokens_neox': 631, 'n_words': 223}