Skip to content

Latest commit

 

History

History
89 lines (57 loc) · 2.6 KB

File metadata and controls

89 lines (57 loc) · 2.6 KB

TypoFixer

TypoFixer App Icon

TypoFixer is a lightweight macOS app that cleans up and corrects Czech text using your choice of AI provider (Google Gemini or OpenAI). It’s built with SwiftUI and designed for speed: paste → Command+Return → copy the fixed text.

Screenshots

TypoFixer Screenshot

Features

  • Czech grammar, spelling, and style correction
  • Google Gemini or OpenAI provider selection
  • Secure API key storage via Keychain (per‑provider)
  • Command+Return to fix instantly; Escape to return to input
  • One‑click copy of the corrected output

Requirements

Installation

  1. Open TypoFixer.xcodeproj in Xcode.
  2. Select the TypoFixer scheme and a My Mac destination.
  3. Build and run.

Configuration

  1. Launch the app, then open Settings (⌘, or via the app menu).
  2. Choose your preferred provider (Google Gemini or OpenAI).
  3. Paste the corresponding API key:
    • Gemini key is stored under gemini_api_key in Keychain.
    • OpenAI key is stored under openai_api_key in Keychain.

The app subscribes to provider and key changes, so you can switch providers seamlessly.

Usage

  1. Paste or type text into the top editor.
  2. Press ⌘⏎ (Command+Return) or click Fix.
  3. Copy the corrected result from the bottom editor using the Copy button.

Tips:

  • If your original text had no quotes but the model returns quoted text, TypoFixer removes the wrapping quotes automatically.
  • Press Esc in the output editor to focus the input editor again.

How It Works

  • Requests are built per provider with AIRequestBuilder and executed by AIService.
  • Responses are parsed and cleaned in TextProcessor.
  • Provider selection and API keys are persisted via UserDefaults and Keychain.

Testing

You can run the unit tests from Xcode (⌘U) or from the command line:

xcodebuild -scheme TypoFixer -destination 'platform=macOS' test

Privacy

  • Your API keys are stored locally in macOS Keychain.
  • Text you submit is sent only to the selected AI provider’s API endpoint.

Roadmap Ideas

  • Additional providers/models
  • Editable prompts
  • History and favorites
  • Menubar quick‑fix or services integration

License

MIT — see LICENSE.md for details.

Acknowledgements

Made by Jan Honza Cerny (honzacerny.com).