ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Google Spell Check

by noahcoad ALL

Uses Google Search spelling magic to fix words or phrases for Sublime Text.

Details

  • 2026.07.28.00.22.01
    2015.10.19.16.10.48
  • github.​com
  • github.​com
  • 3 weeks ago
  • 5 hours ago
  • 13 years ago

Installs

  • Total 63K
  • Win 26K
  • Mac 24K
  • Linux 13K
Aug 16 Aug 15 Aug 14 Aug 13 Aug 12 Aug 11 Aug 10 Aug 9 Aug 8 Aug 7 Aug 6 Aug 5 Aug 4 Aug 3 Aug 2 Aug 1 Jul 31 Jul 30 Jul 29 Jul 28 Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2
Windows 1 0 1 1 0 0 1 0 0 2 2 0 2 0 0 1 1 1 2 0 2 0 0 0 1 0 0 1 1 1 1 1 0 1 0 0 1 1 1 0 1 0 1 0 0 1
Mac 1 0 0 1 0 0 2 0 1 2 1 1 1 0 0 3 0 0 0 1 1 0 1 1 0 1 0 1 0 0 2 1 0 0 0 0 0 1 0 1 0 0 1 0 3 1
Linux 0 0 0 1 1 0 1 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 2 0 0 0 0 0 1 1 0 0 3 1 0 1 1 0 0 1

Readme

Source
raw.​githubusercontent.​com

Google Spell Check

a Sublime Text package

Package Control: https://packagecontrol.io/packages/Google%20Spell%20Check

Description

Use Google magic to fix spelling. Select some text (or just put the cursor on a word), run the command, and the text is silently replaced with Google's recommended spelling. If Google has no clear correction, your text is left alone.

Google has a far better spell checker than most tools:

  1. Frequency — Google sees misspellings all day long, so it knows what you probably meant
  2. Names — company names like flikr or tumblr, or scifi author jon sculzijohn scalzi; typical checkers look one word at a time and have no idea
  3. Unlimited dictionarykubernetes, hackathons, craigslist
  4. Context — the whole phrase is considered, not each word alone
  5. It just works — Sublime's built-in checker has no idea what to do with avalible, finanicals, maitenence

How to Use

  1. Select some text, or put the cursor on a word
  2. Run Google Spell Check
    • hotkey ctrl+alt+g
    • right-click context menu → Google Spell Check
    • Command Palette (ctrl+shift+p / cmd+shift+p) → Google Spell Check
  3. The status bar shows progress, then the correction

Multiple cursors/selections are all checked in one go. Capitalization is preserved (AvalibleAvailable, AVALIBLEAVAILABLE).

If nothing changes, Google thinks your spelling is fine. Select more words to give it context.

How It Works

This uses Google's public autocomplete/suggest endpoint (suggestqueries.google.com), which returns explicit spell-correction metadata — Google marks “you typed X, I think you meant Y”. That flag is what makes silent replacement safe: without it, the plugin doesn't touch your text.

When Google doesn't flag anything, a suggestion is accepted only if it reads as a respelling — same word count, small per-word edit distance, same first letter. This is what stops Google from “correcting” receive into received, or the quick brown fox into the quick brown fox jumps over the lazy dog.

Some misspellings are invisible at phrase level: for additionassl microcontrollers Google only offers to extend the phrase, though additionassl alone corrects cleanly. So when the phrase as a whole yields no correction, each word is checked on its own (words under 4 characters are skipped, punctuation and spacing are preserved).

No API key required. It isn't an officially supported API, so Google changing their response format could break the plugin.

Tests

tests/test_correct.py runs the correction logic against the live endpoint, stubbing the sublime modules so the plugin imports outside the editor:

python3 tests/test_correct.py

Needs a network connection. Covers misspellings that must be corrected, correctly spelled text that must be left untouched, case preservation, and offline input guards.

Installation

Requires Sublime Text 3 or later (Python 3.3+ plugin host).

## Update Notices
* *2026-07-27* (**v2.0.0**), rewritten for Python 3 / ST4. The old version scraped the Google search results page for "Did you mean" — Google removed that markup, so it silently stopped working. Now uses the suggest endpoint's spell-correction metadata, falls back to per-word checking, checks all selections at once, preserves case and spacing, and reports connection failures instead of failing quietly. The `st2` and `st3` branches are retired; everything lives on `master`.
* *2013-10-14*, Sublime Text 3 version added.

## Finally
See also: [Open URL](https://github.com/noahcoad/open-url), another Sublime package.

Author: [@noahcoad](http://twitter.com/noahcoad) writes software for the heck of it and to make life just a little more efficient.