Skip to content

A small express server written in node dedicated to getting the "Did you mean?" prompt from Google. Uses Custom Search Engines

License

Notifications You must be signed in to change notification settings

Newah1/did_you_mean

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Did You Mean?

Spelling correction from the only place that does it right <3

This is a small Node app. To set this up, you're required to create a custom search engine https://cse.google.com/cse/all. After setting that up, generate your API keys for Custom Search Engine.

Fill in your API key and your Custom Search ID in the .env.example file, and rename it to .env

This app by default runs using the "restricted site" API, allowing you "unlimited" API requests.

It runs on port 3200 by default.

A request looks like this: http://localhost:3200?q=mispell

Response looks like this:

{"corrected":"misspell"}

or if there is no correction

{"corrected":"null"}

CLI Version

Also included is a command line version. Simply set up your .env file as you would normally, and run

npm run spell mispelled

This will return the corrected version printed in your console.

About

A small express server written in node dedicated to getting the "Did you mean?" prompt from Google. Uses Custom Search Engines

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published