🇹🇷 Türkçe sürüm için README.tr.md dosyasına bakın.
Type Turkish on an English keyboard — this little menu bar app fixes the letters for you, automatically, as you type.
For example, if you type:
bugun cok guzel bir gun
it instantly becomes:
bugün çok güzel bir gün
Get it from the download page → (or scroll down for the same steps inline).
It works everywhere on your Mac — in your browser, in Mail, in WhatsApp, in any app. You turn it on and off with a single click from the menu bar (the row of small icons at the top-right of your screen), where it shows up as a small TR icon.
- A faint, dimmed TR means it's currently doing nothing.
- A solid, dark TR means it's actively correcting as you type.
When it's off, your typing is completely untouched.
-
Download TurkishAutocorrect.dmg — this link always grabs the newest version.
-
Open the downloaded
.dmg, then drag TurkishAutocorrect into the Applications folder shortcut shown alongside it. -
Open Applications and double-click TurkishAutocorrect.
- Since this app isn't sold through the App Store or paid-signed by Apple, macOS will likely block it the first time with a message like "Apple could not verify TurkishAutocorrect is free of malware." This is expected — to allow it: open System Settings → Privacy & Security, scroll down to the security notice near the bottom, and click Open Anyway, then confirm Open in the dialog that appears. You only need to do this once.
-
You should see a dimmed TR appear in the menu bar. Click it and check Enabled to turn correction on — the icon turns solid. 🎉
-
The first time it tries to listen to your keystrokes, macOS will ask for two permissions — click Open System Settings on each prompt (or go there manually) and turn TurkishAutocorrect on under:
- Privacy & Security → Accessibility
- Privacy & Security → Input Monitoring
If you don't see a prompt and correction just does nothing, check both of those lists directly — the toggle is probably still off.
-
Want it running automatically every time you log in? Click the menu bar icon and check Start at Login.
The Gatekeeper warning above only appears because macOS flags files
downloaded through a browser. A file fetched with curl never gets that
flag, so this one-liner installs the app with no prompt at all. It's
plain shell — read it first
if you want to know exactly what it does before running it:
curl -fsSL https://eicyer.github.io/os-turkish-deasciifier/install.sh | shIt downloads the latest release, installs it to /Applications, and opens
it — you still need to grant the Accessibility/Input Monitoring prompts
in step 5 above.
That's it — no Python, no git clone, no Terminal required. Everything
below this point is for developers building or modifying the app from
source.
- Click the TR icon in the menu bar.
- Check Enabled — the icon turns solid.
- Type anywhere — words are corrected the moment you press space, enter, or punctuation.
- To pause it without closing the app, uncheck Enabled again (the icon dims back down) — the icon stays in the menu bar either way.
- Quit TurkishAutocorrect actually exits the app, and the icon disappears from the menu bar. If you have Start at Login checked, macOS relaunches it a few seconds later (dimmed, same as any fresh start) — uncheck Start at Login first if you want it to stay off.
Open the TextEdit app, start a new document, and type
bugun cok guzel bir gun (with a space at the end). It should turn into
bugün çok güzel bir gün .
- The menu bar icon and menu are built with
rumps. - Keystrokes are observed system-wide (without blocking them) using
pynput. - While enabled, the app collects the letters of the word you're currently
typing. At each word boundary (space, punctuation, enter, tab) it runs
the word through
turkish-deasciifier— the Python port of Deniz Yüret's context-based Turkish deasciification algorithm (so it correctly picks e.g.güzelvsgzelbased on surrounding letters). If the result differs, it sends backspaces to erase the ASCII word and types the corrected Turkish word in its place. - That library isn't published on PyPI, so
requirements.txtinstalls it directly from GitHub viagit+https://github.com/emres/turkish-deasciifier.git. - The downloadable
.appis built withpy2app(seesetup.py), bundling its own Python interpreter so end users don't need Python installed at all.
- If you move the cursor mid-word (arrow keys, clicking elsewhere), that word is left alone rather than risking a wrong correction.
- Words containing digits (like
gun2) aren't corrected. - The correction is context-aware but not perfect — very occasionally a word may be corrected in a way you didn't intend. Just press backspace and retype it with correction toggled off.
- There's a small window where an injected backspace/retype and your next keystroke could theoretically interleave; not observed in practice but worth knowing about if you ever see garbled output.
- Notarize the release with a paid Apple Developer account to remove the Gatekeeper "Open Anyway" step entirely.
Everything below this point is for building or modifying the app. If you just want to use it, see Download above.
- A Mac (macOS).
- Python 3 installed. Most Macs already have it; if not, you can download it from python.org.
1. Clone the repo:
git clone https://github.com/eicyer/os-turkish-deasciifier.git
cd os-turkish-deasciifier2. Install its dependencies:
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txtThis creates a private folder called venv with everything the app needs;
it doesn't change anything else on your Mac.
source venv/bin/activate
python app.pyYou should see a dimmed TR appear in your menu bar. Click it and check Enabled to turn correction on.
Instead of launching app.py by hand every time, register it as a per-user
LaunchAgent so macOS starts it automatically at login and relaunches it
(KeepAlive) if it ever crashes:
./install-launchagent.shThis writes ~/Library/LaunchAgents/com.github.eicyer.tr-autocorrect.plist
and starts it immediately — a dimmed TR should appear in the menu bar
within a few seconds, no Terminal window needed from then on.
To stop the background process entirely (e.g. before uninstalling or updating the code):
./uninstall-launchagent.shThis stops it and removes the plist so it won't come back at next login
either. Re-run ./install-launchagent.sh (or double-click
TurkishAutocorrect.command) to bring it back.
Trade-offs of running this way, worth knowing:
- Accessibility/Input Monitoring permissions are effectively granted continuously, not just while you have it open.
- A small amount of CPU/memory stays resident all the time, even when Enabled is off, until you uninstall it.
- If the app fails at startup,
launchdretries every ~10s (ThrottleInterval) rather than looping instantly. - There's no attached Terminal window, so errors go to
tr-autocorrect.login this folder instead of stdout — check there if something's not working.
If you'd rather not run it as a background daemon, just run python app.py
manually each time — to stop it you'll need Ctrl+C in the Terminal window
it's running in.
This section is for the python app.py / venv workflow above, where the
permission has to be granted to the raw interpreter binary. If you
installed the downloaded .app instead, use the simpler steps in
Download — the permission
prompt there is just labeled TurkishAutocorrect.
Two separate privacy permissions are involved:
- Accessibility — needed to simulate the backspace/retype keystrokes.
- Input Monitoring — needed to observe global keystrokes (required since macOS Catalina for any app doing system-wide key listening).
Steps:
- Open System Settings → Privacy & Security → Accessibility.
- Click the + button (you may need to unlock with your password first).
- In the file picker that opens, press
Cmd+Shift+G, then paste in the path to your venv's Python and press Enter. To find that path, run this in Terminal from the app's folder:Copy the line it prints — that's the path to add.venv/bin/python3 -c "import sys; print(sys.executable)" - Make sure the toggle next to it is switched on.
- Repeat the same steps under System Settings → Privacy & Security → Input Monitoring.
- If Terminal (or iTerm, or whatever app you launched
python app.pyfrom) also appears in either list, make sure it's toggled on too — some macOS versions attribute the permission to the launching terminal app instead of (or in addition to) the interpreter binary. - Quit and restart the script (
Ctrl+C, thenpython app.pyagain) — permission changes usually require the process to relaunch.
If you don't see a prompt at all and correction just doesn't do anything, that almost always means one of these two permissions is still missing — double check both lists.
source venv/bin/activate
pip install py2app
python3 setup.py py2appProduces dist/TurkishAutocorrect.app. See .github/workflows/release.yml
for how this is built, ad-hoc signed, packaged into a DMG, and published to
GitHub Releases automatically when a v*.*.* tag is pushed.