<commit_before>
h1. Cohesion

h2. Intro

Cohesion is a group of tasks that allow you to check link cohesion in a site.

h2. Installation

Add to your Gemfile

bc. gem 'cohesion'

or you can just install without bundler with

bc. gem install cohesion


h2. Usage

h3. Checking an external site

You can check an external site with the rake task below.  This will crawl the site and check each link within the site, and will also check the links to external sites.  It will also check image, stylesheet and javascript references from link tags.

bc. rake cohesion:check["http://your-site-to-check.com"]

<commit_msg>updated readme with donation text<commit_after>
h1. Cohesion

h2. Intro

Cohesion is a group of tasks that allow you to check link cohesion in a site.

h2. Installation

Add to your Gemfile

bc. gem 'cohesion'

or you can just install without bundler with

bc. gem install cohesion


h2. Usage

h3. Checking an external site

You can check an external site with the rake task below.  This will crawl the site and check each link within the site, and will also check the links to external sites.  It will also check image, stylesheet and javascript references from link tags.

bc. rake cohesion:check["http://your-site-to-check.com"]

h3. Checking your local development environment

Currently you can check your local development environment the same way as you do an external, but point to your local server:

bc. rake cohesion:check["http://localhost:3000/"]


h2. Future

I intend to add the ability to check the rails app without starting the server though, which would allow you to add it to your specs.

h2. Contribute

If you want to contribute, you can fork the github repository and submit pull requests, or you can donate me some development fuel... ie coffee/beer use this link 

"DONATE!":https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=VDJK49HD3DNAS&lc=GB&item_name=stewartmckee&item_number=stewartmckee_donation"&no_note=1&no_shipping=1&currency_code=GBP&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted
{'fraction_non_alphanumeric': 0.059024390243902436, 'fraction_numerical': 0.012682926829268294, 'mean_word_length': 4.397368421052631, 'pattern_counts': {'":': 1, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, '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': '4574633', 'n_tokens_mistral': 650, 'n_tokens_neox': 618, 'n_words': 286}