Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/timthedev07/hash-speller


https://github.com/timthedev07/hash-speller

Last synced: 5 days ago
JSON representation

Awesome Lists containing this project

README

        

# hash-speller

This is a package that performs spell checking on a given chunk of text in the provided language.

## Why would I use this particular package?

Well, because it uses hash tables as its core data structure, which means once loading everything in, the speed of looking up any word would be nearly constant, `O(1)`.

## Installation

```bash
yarn add hash-speller
```

## Usage

```typescript
import { Checker } from "hash-speller";

const checker = new Checker("", "text you want to check");
const stats = checker.check(true /* if you want the stats to be printed out */);
```