Metadata-Version: 2.1
Name: ai_spellcheckers
Version: 1.0.0
Summary: Detect spelling errors in images and plain text using OpenAI Vision
Author-email: Tyler Barrus <barrust@gmail.com>
License: MIT
Project-URL: Homepage, https://github.com/barrust/ai-spellcheckers
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: requests>=2.31.0

# ai_spellchecker

Detect spelling errors in images and plain text using OpenAI Vision.


## Usage

```python

from ai_spellcheckers import SpellChecker

spellchecker = SpellChecker()

api_key = "YOUR_OPENAI_API_KEY"  # Replace with your OpenAI API key

text = "I am a student."
print(spellchecker.check_text(text, api_key))  # True = reject (spelling error). False = accept.

image_path = "test.png"  # file path to an image or image bytes
print(spellchecker.check_image(image_path, api_key))  # True = reject (spelling error). False = accept.

```
