<commit_before># Countify
Laravel 5 package to count the words in a textarea.

## Instalation
1.Require it in your composer.json file

```php
"thunder/countify": "dev-master"
``` 
2. Add the service provider to the service providers array in config > app.php

```php
'thunder\Countify\CountifyServiceProvider',
``` 
3. Add an alisas to the aliasses array in config > app.php

```php
'Countify'  => 'thunder\Countify\Facades\Countify',
``` 
4.Do a composer update
5. Publish the resources through this command 

```php
php artisan vendor:publish
``` 

## Usages
1. Include the published resources in your view. Jquery is required.

```html
<script src="//code.jquery.com/jquery-1.11.2.min.js"></script>
<script src="js/Countify.js"></script>
```

2. All that rests now is the textarea with an id of count, a span or div with an idea of words. And an hidden field with your laravel token.

```html
<textarea id="count"></textarea>
<input id="_token" type="hidden" name="_token" value="{{ csrf_token() }}" />
<p>
    Aantal woorden: <span id="words"></span>
</p>
```

You're good to go know, enjoy it.<commit_msg>Documentation bug fixes<commit_after># Countify
Laravel 5 package to count the words in a textarea.

## Instalation

Require it in your composer.json file

```php
"thunder/countify": "dev-master"
``` 
Add the service provider to the service providers array in config > app.php

```php
'thunder\Countify\CountifyServiceProvider',
``` 
Add an alisas to the aliasses array in config > app.php

```php
'Countify'  => 'thunder\Countify\Facades\Countify',
``` 
Do a composer update

Publish the resources through this command 

```php
php artisan vendor:publish
``` 

## Usages

Include the published resources in your view. Jquery is required.

```html
<script src="//code.jquery.com/jquery-1.11.2.min.js"></script>
<script src="js/Countify.js"></script>
```

All that rests now is the textarea with an id of count, a span or div with an idea of words. And an hidden field with your laravel token.

```html
<textarea id="count"></textarea>
<input id="_token" type="hidden" name="_token" value="{{ csrf_token() }}" />
<p>
    Aantal woorden: <span id="words"></span>
</p>
```

You're good to go know, enjoy it.
{'fraction_non_alphanumeric': 0.14046973803071364, 'fraction_numerical': 0.0076784101174345075, 'mean_word_length': 4.402439024390244, 'pattern_counts': {'":': 2, '<': 25, '<?xml version=': 0, '>': 31, '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': '1934278', 'n_tokens_mistral': 751, 'n_tokens_neox': 707, 'n_words': 266}