<commit_before># Levi

Streaming full-text search for Node.js and browsers. Using LevelDB as storage backend.

Levi implements full-text search using TF-IDF with field boost options, 
relevancy scoring using cosine similarity. 
Levi provides the typical text processing pipeline: Tokenizer, Porter Stemmer, and English Stopwords Filter. 
These are exposed as [Ginga](https://github.com/cshum/ginga) plugins so that they can be swapped for different configurations.

Levi heavily inspired from [lunr.js](http://lunrjs.com/). 
But instead of synchronous in-memory store, Levi leverages [LevelUP](https://github.com/Level/levelup) for asynchronous, 
[transactional](https://github.com/cshum/level-transactions/) storage interface.
By default, Levi uses [LevelDB](https://github.com/Level/leveldown) on Node.js and IndexedDB on browser. 
Also works with a variety of LevelDOWN compatible backends.
<commit_msg>more explanation<commit_after># Levi

Streaming full-text search for Node.js and browsers. Using LevelDB as storage backend.

```
npm install levi
```

Levi implements full-text search using TF-IDF with field boost options, 
relevancy scoring using cosine similarity. 
Levi provides the typical text processing pipeline: Tokenizer, Porter Stemmer, and English Stopwords Filter. 
These are exposed as [Ginga](https://github.com/cshum/ginga) plugins so that they can be swapped for different configurations.

Levi heavily inspired from [lunr.js](http://lunrjs.com/). 
But instead of synchronous in-memory store, Levi leverages [LevelUP](https://github.com/Level/levelup) for asynchronous, 
[transactional](https://github.com/cshum/level-transactions/) storage interface.
By default, Levi uses [LevelDB](https://github.com/Level/leveldown) on Node.js and IndexedDB on browser. 
Also works with a variety of LevelDOWN compatible backends.

{'fraction_non_alphanumeric': 0.08799565453557849, 'fraction_numerical': 0.0, 'mean_word_length': 5.059210526315789, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, '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': '436414', 'n_tokens_mistral': 541, 'n_tokens_neox': 511, 'n_words': 198}