<commit_before># Mention.js

Lightweight wrapper for adding @user mention functionality to Twitter Bootstraps Typeahead plugin

<b>View the demo <a href="http://jsfiddle.net/jakie8/qCXD5/" target="_blank">here</a>.</b>

## Dependencies
* <a href="https://github.com/jquery/jquery" target="_blank">jQuery</a>
* <a href="https://github.com/twitter/bootstrap" target="_blank">Typeahead</a>

## Usage
`````javascript
Mention.apply({
    target: "#multi-users",
    users: ["ashley", "roger", "frecklefart123"]
});
 
`````

## Defaults
`````javascript
Mention.apply({
    target: "", // Element Selector
    users: [], // Array of Usernames to search against
    typeaheadOpts: { // Settings for Typeahead
        matcher: _matcher, // Mention.js's custom matcher function, don't change
        updater: _updater, // Mention.js's custom updater function, don't change
    }
});
 <commit_msg>Updated Docs to reflect new features<commit_after># Mention.js

Lightweight wrapper for adding @user mention functionality to Twitter Bootstraps Typeahead plugin

<b>View the demo <a href="http://jsfiddle.net/jakie8/qCXD5/" target="_blank">here</a>.</b>

## Dependencies
* <a href="https://github.com/jquery/jquery" target="_blank">jQuery</a>
* <a href="https://github.com/twitter/bootstrap" target="_blank">Typeahead</a>

## Usage
`````javascript
$("#multi-users").mention({
    delimiter: '@',
    users: ["ashley", "roger", "frecklefart123"]
});
 
`````

## Defaults
`````javascript
$("#multi-users").mention({
    delimiter: '@', // Username Delimiter
    users: [], // Array of Usernames to search against
    typeaheadOpts: { // Settings for Typeahead
        matcher: _matcher, // Mention.js's custom matcher function, don't change
        updater: _updater, // Mention.js's custom updater function, don't change
    }
});
 
{'fraction_non_alphanumeric': 0.1717116125481563, 'fraction_numerical': 0.00550357732526142, 'mean_word_length': 4.2091690544412605, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 4, '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': '3534501', 'n_tokens_mistral': 603, 'n_tokens_neox': 574, 'n_words': 142}