Skip to main content

Google Spell Checker

It is a simple multilingual Spell Checker using Google Text Completion.

Installation

pip install google-spell-checker

Usage

GoogleSpellChecker.check(word) returns a tuple, the first variable is the correctness of the text, the second variable is the most possible correct word (or None if it is a correct word).

from google_spell_checker import GoogleSpellChecker

spell_checker = GoogleSpellChecker()
print(spell_checker.check("developmnet"))
# (False, 'development')
print(spell_checker.check("martialartz"))
# (False, 'martial arts')
print(spell_checker.check("amoxicillin-clavulanic"))
# (True, None)

Different Language Code

The GoogleSpellChecker uses the default language code "en-EN", but you can change it by passing the parameter lang to GoogleSpellChecker() as follow:

# For example, we use lang="id" for Indonesian
spell_checker = GoogleSpellChecker(lang="id")
print(spell_checker.check("sayalaparsekali, say ingn makn dirumha"))
# (False, 'saya lapar sekali, saya ingin makan di rumah')

Metadata

Release files for google-spell-checker 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for google-spell-checker 0.2.1
File Size Uploaded
google_spell_checker-0.2.1.tar.gz 3.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for google-spell-checker 0.2.1
File Interpreter ABI Platform
google_spell_checker-0.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 7.2 kB

Release files / google_spell_checker-0.2.1.tar.gz

Download URL google_spell_checker-0.2.1.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
82b77ec733e98275269e96e876dc48eaa80bf43d468ddc7be568f57cd2fa0854
BLAKE2b-256 checksum
How to use checksums
81a926a1c3e16dc949ada673c17795ec881791c130afc09bb052c9b5990e6293
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.6

Release files / google_spell_checker-0.2.1-py3-none-any.whl

Download URL google_spell_checker-0.2.1-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4f7dd0b7f8a69fbe72e96dcb624092f94bbf0526430d7520ad741ce390f08dbb
BLAKE2b-256 checksum
How to use checksums
74624414d346a6a0c9121a86b4b66f58b78eb249c5030e463c4bb40351599bd7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.7.6

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page