PCTUTU.comBack to PCTUTU.com
GitHub projects
tilqosUtilities
Category
Utilities
Publisher
elapen
Repository
Open repository
Release
Open release
Current version
v1.0.0
Release date
2026-10-15
Package size
Windows 2.8 MB · macOS 4.0 MB
Utilities · elapen

tilqos

Fixes text typed in the wrong keyboard layout, and switches the layout for you. English, Russian and Kazakh. A native macOS menu bar app: ghbdtn becomes привет , с2леметс3з becomes сәлеметсіз . Everything runs on your Mac: no cloud, no account, no network, no telemetry.

Version v1.0.0
Available for Windows and macOS

README

Tilqos icon

Tilqos

Fixes text typed in the wrong keyboard layout, and switches the layout for you.
English, Russian and Kazakh. A native macOS menu-bar app: ghbdtn becomes привет, с2леметс3з becomes сәлеметсіз.
Everything runs on your Mac: no cloud, no account, no network, no telemetry.

Release License: MIT Platforms Русский Қазақша

Tilqos in suggest mode: a hint card at the cursor offering to turn ghbdtn into привет, plus the English and Kazakh examples

Tilqos (Kazakh «Тіл қос», "switch the language on") is an independent open-source project. It is similar in purpose to Punto Switcher and is not affiliated with, or endorsed by, Yandex or Punto Switcher.

Why Tilqos

You start a sentence, glance up, and the screen says ghbdtn rfr ltkf instead of привет как дела. Tilqos notices, rewrites the words, switches the layout, and lets you carry on typing.

It is for people who type in several of English, Russian and Kazakh on a Mac every day: bilingual and trilingual writers, students, developers, anyone in Kazakhstan or the Russian-speaking world who keeps hitting the wrong layout.

Kazakh is a first-class language here, not an add-on. On a Mac, the Russian and Kazakh layouts agree on all 33 Russian letters and differ only on the number row (plus a few edge keys), where Kazakh puts its nine extra letters and Russian puts digits:

Key ABC Russian Kazakh
2 2 2 ә
3 3 3 і
4 4 4 ң
5 5 5 ғ
= = = һ
9 9 9 ұ
- - - ө
8 8 8 ү
0 0 0 қ

(Verified against the real macOS layouts by the test suite; full table in docs/KAZAKH.md.) Three things follow, and the whole design leans on them:

  1. Latin ↔ Cyrillic garbles the whole word: привет ↔ ghbdtn. Easy to recognise.
  2. Kazakh typed on the Russian layout breaks only the nine Kazakh letters. Seven of them turn into digits and two into = and -: сәлеметсіз → с2леметс3з, қазақ → 0аза0. A digit inside a Cyrillic word is a very strong signal.
  3. Russian typed on the Kazakh layout looks right (Астана stays Астана): nothing to fix, no layout to switch. That removes the biggest source of false corrections.

On the Kazakh layout the digits live on Option, so Tilqos remembers key presses, not characters; a character-to-character table cannot represent that without loss.

Animation: ghbdtn is typed, a hint appears at the cursor, Tab turns it into привет and the layout switches

The animation is an illustration of the flow, not a screen recording, and it shows suggest mode (the default for terminals and for low-confidence words). In Auto mode a word the detector is sure about (confidence above the preset threshold) is replaced as soon as you type the space, without a card.

What it does

  • Fixes it for you, or offers. When the detector is sure it replaces the word as soon as you type the space or punctuation; when it is not, it shows a small card at the cursor (было → стало) and Tab accepts it. Any other key dismisses it and the word stays as typed.
  • Switches the layout after a fix, so the next word comes out right. If a corrected word has none of the nine Kazakh letters, Russian and Kazakh look the same; Tilqos then follows your setting or the Cyrillic layout you last used in that app.
  • Never fixes a word that is a real word. еще, тот, her are left alone. URLs, paths, e-mail addresses, snake_case and camelCase, calls like foo(, ALL-CAPS acronyms and words after $ # @ \ are never touched.
  • Menu-bar icon shows the current layout as a keycap (EN, РУ, ҚАЗ), dimmed when switched off, and a warning triangle when a permission is missing. The menu says in words whether it is working, has the on/off switch, "Don't correct in this app" and one-click undo of the last correction.
  • Per-app control. Auto, suggest-only or off for each app (Settings → Apps). Password managers and the login window are always off; terminals are suggest-only by default, with ⌥Space to accept because Tab is needed there.
  • Presets: Cautious, Balanced, Bold (automatic / hint thresholds 0.93/0.55, 0.80/0.45, 0.55/0.30), with both thresholds and the minimum word length adjustable.
  • Undo with ⌥⇧Z; undoing right away teaches it to leave that word alone.
  • Learning from what you do: undone fixes, words you erase and retype, hints you accept or dismiss, and words you keep that no dictionary knows. Stored as hashes, can be switched off, forgotten word by word or all at once.
  • Kazakh transliteration Latin ⇄ Cyrillic (⌥⇧T): the official 2021 alphabet or the practical ASCII chat spelling (qalaisyz → қалайсыз), decoded with vowel harmony and Kazakh morphology, mixed Kazakh/Russian text included.
  • Fix selection / convert clipboard for text that was never typed on your keyboard.
  • Interface in English, Russian and Kazakh: it follows the system language, or you can pick one in Settings → General. Open at login is optional and off by default.
Hotkey Action
⌥⇧F fix the last word (even a real word; you asked)
⌥⇧S fix the selection
⌥⇧Z undo the last correction
⌥⇧V convert the clipboard
⌥⇧T transliterate Latin ⇄ Cyrillic
⌥⇧1 / ⌥⇧2 / ⌥⇧3 switch to English / Russian / Kazakh
⌥⇧L switch Tilqos on or off (works while it is off)
Tab accept a hint (⌥Space in terminals and code editors)

All of them can be rebound in Settings → Shortcuts.

Screenshots

Welcome window that walks through granting the Accessibility permission Settings window, Correction pane with the Cautious, Balanced and Bold presets
A welcome window walks through the permission, then a five-step tutorial lets you practise on the real engine Settings in the style of System Settings: presets in words, thresholds if you want them
The hint card shown in suggest mode: ghbdtn to привет with the Tab key
The hint card appears at the cursor and never steals focus

Install

Platform Get it Notes
macOS 14+, Apple silicon Tilqos-1.0.0-macOS-arm64.dmg Drag to Applications. Not notarized: see "First launch" below.
macOS via Homebrew brew install --cask elapen/tap/tilqos The same app, installed by the cask; the same first-launch notes apply.
From source git clone https://github.com/elapen/tilqos && cd tilqos && ./build.sh install Needs a Swift 6.0+ toolchain (Xcode 16+). Installs to /Applications. Intel Macs are untested.
Windows 10/11, experimental Tilqos-1.0.0-Windows-x64.zip or -arm64.zip Never run on real Windows by the author. Unsigned. See Windows.

Release notes list the SHA-256 checksum of every file. Tilqos has no updater: watch the Releases page.

Compatibility: macOS 14 is the declared minimum (Info.plist, Package.swift), but Tilqos was developed and tested on macOS 27 only; macOS 14 to 26 are unverified.

First launch (Gatekeeper)

Release builds are ad-hoc signed and not notarized, so macOS blocks the first launch:

  1. Open the DMG and drag Tilqos to Applications, then open it.
  2. When macOS refuses, on macOS 14: Control-click the app → Open → Open. On macOS 15 and later that shortcut is gone: open System Settings → Privacy & Security, scroll to the message about Tilqos and press Open Anyway.
  3. If you prefer Terminal and trust the download: xattr -dr com.apple.quarantine /Applications/Tilqos.app.

Permissions

macOS makes you grant an app that watches the keyboard its access by hand.

  • Accessibility is the one to grant (System Settings → Privacy & Security → Accessibility → switch Tilqos on; the welcome window opens it for you). Tilqos needs it to see key presses, to swallow the key that accepts a hint (so Tab is not also typed), to read the text before the caret, and to replace the wrong text.
  • Input Monitoring is an optional fallback: it lets Tilqos read keystrokes, so it can detect and offer hints but cannot apply them. If Accessibility is on, macOS may not list Tilqos under Input Monitoring at all, and that is normal.
  • Nothing else is requested: no Screen Recording, no Full Disk Access, no network.

After an update, re-approve the permission. macOS ties a grant to the app's code identity, and an ad-hoc signature is different for every build. After you install a newer Tilqos the old entry can look switched on but no longer apply. Quit Tilqos, remove the Tilqos entry in Privacy & Security → Accessibility (−) or run tccutil reset Accessibility io.github.elapen.tilqos, open Tilqos again and grant it again. Details, and what to do when nothing happens: docs/PERMISSIONS.md.

Launch Tilqos from Finder, the Dock or open -a Tilqos, not from a shell: macOS credits the permission request to the process that started the app.

You need at least two of the ABC (or US), Russian and Kazakh layouts added in System Settings → Keyboard → Input Sources; Tilqos switches only among the layouts you have.

How it decides

Evidence, strongest first (details and every number in docs/HOW_IT_WORKS.md):

  1. Is what you typed a real word? Then it is never rewritten automatically.
  2. Is the other reading a real word? Layout garble is not a word in any language (ghbdtn); its conversion is (привет). Brands and terms are the opposite. That asymmetry is what makes correcting safe. "Real word" means word forms from the hunspell dictionaries (stems plus affix rules, not just headwords), your own vocabulary and a brand list.
  3. Frequency, for short words. A three-letter fix is accepted only if it lands on one of the language's most frequent words (ult → где, yes; afk → фал, no).
  4. Context. The script of neighbouring words, and of the text before the caret, tilts a close call but never decides it.
  5. Structure. A digit or hyphen inside a Cyrillic word (с2лем) is Kazakh on the Russian layout whatever a dictionary says. Kazakh suffix morphology (десеңіздер = десе + ңіз + дер) backs it up.
  6. Character trigram models last, for words no dictionary has, and then only as a hint, never automatically.

A word ends only at a key that is not a letter on any of your layouts, so ,skj (было) and [jhjij (хорошо) are not cut in half.

Accuracy

On th

Publisher informationSoftware details and release files are provided by the publisher.