Skip to main content

System-wide autocorrect for Linux

Project description

autocorrect-linux

autocorrect-linux is a system-wide word suggestion and prediction tool for Linux desktops.
It provides real-time word suggestions and next-word predictions for any application, using a global keyboard listener and a floating GUI.
Note: This tool does not automatically replace misspelled words—it only suggests possible corrections and predictions.


Features

  • Real-time word suggestions for any window
  • Next-word prediction using Machine Learning
  • Custom personal word list (PWL) support
  • Words flagged as incorrect get added to PWL after being used 3 times
  • Always-on-top floating GUI (when activated)
  • Works system-wide on Linux/X11

Requirements

  • Linux (X11)
  • Python 3.9 - 3.11
  • 4GB free disk space required (for model and data files)
  • 8GB RAM recommended (for smooth operation)

Installation

System dependencies:

Arch Linux:

sudo pacman -S xorg-xprop

Debian/Ubuntu:

sudo apt install x11-utils

Python package:

pip install autocorrect_linux

Usage

Start the tool with:

python -m autocorrect_linux
  • The first startup may take several seconds as the language model and vocabulary are downloaded and loaded into memory.
  • On subsequent runs, startup will be faster.

A floating window will appear at your mouse cursor, showing word suggestions and predictions as you type.
You can click on suggestions to copy them, but the tool will not automatically replace words in your application.

Hotkeys

  • Alt+C: Pause/resume the suggestion window and prediction engine.

Notes

  • The tool works system-wide, but only on Linux/X11 desktops.
  • The GUI is non-intrusive and does not allow editing.
  • Suggestions are based on both a dictionary and a machine learning model.
  • If you use a personal word list (PWL), words you use often will be suggested more quickly.

Troubleshooting

  • Startup is slow: The first run downloads and loads a large model (~400MB). Make sure you have a stable internet connection and enough disk space.
  • High RAM usage: 8GB RAM is recommended, especially for large models.
  • No suggestions appear: Make sure you are running under X11 (not Wayland) and that required system packages are installed.
  • Hotkey does not work: Ensure no other application is using Alt+C as a global shortcut.

License

GPL-3.0


Author

simon0302010

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

autocorrect_linux-0.4.1.tar.gz (20.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

autocorrect_linux-0.4.1-py3-none-any.whl (20.9 kB view details)

Uploaded Python 3

File details

Details for the file autocorrect_linux-0.4.1.tar.gz.

File metadata

  • Download URL: autocorrect_linux-0.4.1.tar.gz
  • Upload date:
  • Size: 20.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.18

File hashes

Hashes for autocorrect_linux-0.4.1.tar.gz
Algorithm Hash digest
SHA256 909b00946a4325dcd2d6885956b7d64701f8bcd1797ad5803fad3c62c267d3dd
MD5 7f37debb33cab917f2a138dc12af4f75
BLAKE2b-256 94120a5c2d9ee2195cbbbe27c23bede872526ceb8a634e779335851d4da6ab3c

See more details on using hashes here.

File details

Details for the file autocorrect_linux-0.4.1-py3-none-any.whl.

File metadata

File hashes

Hashes for autocorrect_linux-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0c189691e6e266e764c77302023087b669e98253efdfe133cefde4d192da6862
MD5 92e4b0959892da54f9ed59a7ab67b4d6
BLAKE2b-256 a18b2b32689a4a8d4552ff1d0a3c5d960487e1ec4c3ce80db00cd9cf0a29c375

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page