<commit_before># lita-web-title

A simple plugin to parse URIs in chat and return the title. Also follows 30x redirects if they are found

## Installation

Add lita-web-title to your Lita instance's Gemfile:

``` ruby
gem "lita-web-title"
```

## Usage
<commit_msg>Update README.md for new ignore_patterns feature<commit_after># lita-web-title

A simple plugin to parse URIs in chat and return the title. Also follows 30x redirects if they are found

## Installation

Add lita-web-title to your Lita instance's Gemfile:

``` ruby
gem "lita-web-title"
```

## Configuration

### Required attributes
None

### Optional attributes
* ```ignore_patterns``` (String or Array) - A pattern or list of patterns.  When a URL matches any of these patterns, Lita will silently ignore it.  Default: ```nil```.  Example: ```config.handlers.web_title.ignore_patterns = ["rpm.newrelic.com","example.com","my(dev|stg|prd).com"]```

## Usage

{'fraction_non_alphanumeric': 0.11796536796536797, 'fraction_numerical': 0.004329004329004329, 'mean_word_length': 4.640243902439025, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '3151779', 'n_tokens_mistral': 306, 'n_tokens_neox': 289, 'n_words': 107}