https://github.com/typesense/showcase-spellcheck
Use Typesense to build a type-ahead spellchecker
https://github.com/typesense/showcase-spellcheck
spellchecker spelling-correction typesense typo-tolerance
Last synced: 11 months ago
JSON representation
Use Typesense to build a type-ahead spellchecker
- Host: GitHub
- URL: https://github.com/typesense/showcase-spellcheck
- Owner: typesense
- Created: 2021-03-23T00:46:26.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2025-02-05T00:52:45.000Z (over 1 year ago)
- Last Synced: 2025-04-17T07:17:33.078Z (about 1 year ago)
- Topics: spellchecker, spelling-correction, typesense, typo-tolerance
- Language: JavaScript
- Homepage: https://spellcheck.typesense.org/
- Size: 174 KB
- Stars: 8
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Typeahead Spellchecker
Use Typesense's typo-correction feature to build a Type-Ahead Spellchecker.
## Live Demo
https://spellcheck.typesense.org/
The UI is hosted on S3, the data is indexed in a single-node Typesense Cloud cluster with 512MB RAM in Oregon.
## How it works
We index 333K [dictionary words](https://www.kaggle.com/rtatman/english-word-frequency), along with the popularity of each word in a Typesense collection.
We then extract the last typed word and send it as a "search" to Typesense. Since Typesense searches for typo-corrected words automatically, it returns closely related typo-corrected words from the dictionary, which we show as type-ahead suggestions.
## Running it locally
```shell
yarn typesenseServer
ln -s .env.development .env
yarn index
yarn start
```
## Deployment
To deploy the UI run:
```shell
yarn deploy
```