<commit_before># wordfilter

A small module meant for use in text generators that lets you filter strings for bad words.

## Getting Started
Install the module with: `npm install wordfilter`

```javascript
var wordfilter = require('wordfilter');
wordfilter.blacklisted('does this string have a bad word in it?'); // "false"

// clear the list entirely
wordfilter.clearList();

// add new words
wordfilter.addWords(['zebra','elephant']);
wordfilter.blacklisted('this string has zebra in it'); // "true"

// remove a word
wordfilter.removeWord('zebra');
wordfilter.blacklisted('this string has zebra in it'); // "false"
```

Or with Python:<commit_msg>noop commit to kick travisci into motion<commit_after># wordfilter

A small module meant for use in text generators. It lets you filter strings for bad words.

## Getting Started
Install the module with: `npm install wordfilter`

```javascript
var wordfilter = require('wordfilter');
wordfilter.blacklisted('does this string have a bad word in it?'); // "false"

// clear the list entirely
wordfilter.clearList();

// add new words
wordfilter.addWords(['zebra','elephant']);
wordfilter.blacklisted('this string has zebra in it'); // "true"

// remove a word
wordfilter.removeWord('zebra');
wordfilter.blacklisted('this string has zebra in it'); // "false"
```

Or with Python:
{'fraction_non_alphanumeric': 0.1229260935143288, 'fraction_numerical': 0.0, 'mean_word_length': 5.031818181818182, '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': '1477899', 'n_tokens_mistral': 389, 'n_tokens_neox': 365, 'n_words': 149}