Skip to content

Commit

Permalink
add note about punctuation configuration option
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrsh committed Jul 19, 2017
1 parent 7d633a3 commit 35c2cbb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Expand Up @@ -91,6 +91,12 @@ The stop words can be configured to include any words you like, and you can acce
Wade.config.stopWords = [/* array of stop words */];
```

The punctuation regular expression used to remove punctuation can be configured with:

```js
Wade.config.punctuationRE = /[.!]/g; // should contain punctuation to remove
```

### Algorithm

The algorithm behind the search is fairly simple. First, a trie data structure is generated off of the data. When performing a search, the following happens:
Expand Down

0 comments on commit 35c2cbb

Please sign in to comment.