A writing tutor on your desktop
v0.1.3
Write in English. Learn why it was wrong.
You write a sentence or an essay. A language model that you choose finds the grammar, vocabulary and syntax errors, and English Tutor underlines them, explains each one and counts the mistakes you keep making.
Install it GitHub Documentation
go install github.com/rm4n0s/english-tutor/cmd/english-tutor@latest

Press Check. The errors are underlined in the text and listed beside it.
Select an error and read why it is wrong, better ways to say it, and a tip to remember.
Select a sentence and check only that one. The other underlines stay as they were.
Select a word, a sentence or a paragraph and get other ways to write it.
Every mistake is counted by its type, with your own words from the last three times.
The model is yours to choose: Ollama on your computer, an OpenAI-compatible server, or Anthropic.
3 kinds
of mistakes, each with its own color and its own line under the words
4 parts
in an explanation: what is wrong, why, better ways, and a tip to remember
3 providers
Ollama, any OpenAI-compatible server, and Anthropic
7 / 30 days
are the views of your statistics, beside the count of all time
It explains, not only underlines
Every mistake comes with an explanation of what is wrong, why, and better ways to write it. You correct the text yourself and check again.
It remembers what you repeat
Each mistake is counted by its type, and a repeat counts every time. The statistics name your most frequent mistake, which is the rule to study next.
The model is your choice
English Tutor has no model inside. It works with Ollama, any OpenAI-compatible server, and Anthropic. With a local Ollama server your text stays on your machine.
Your text goes only to the model you chose
The text is sent when you check it, ask for an explanation or ask for alternatives, and only to the LLM you selected. Everything else stays in one folder of your home directory.
- With Ollama on your own computer the text never leaves it
- The form warns you when a configuration points to a server on the internet
- The log records timings and token counts. It never contains your text, the answers of the LLM or API keys.
- An explanation comes from an LLM, so it is not trusted: no picture or other remote content is loaded from it, and a link opens only after you confirm its full address
From the first check to the rule you keep breaking
The tutorial of the app walks through all of this in about 15 minutes.
Check
Three kinds of mistakes that you can tell apart
Press Check, or Ctrl+Return. Each kind of mistake has its own color and its own line, so the kinds do not rely on color alone.
- Grammar is orange and wavy, vocabulary is blue and dashed, syntax is green and dotted
- The legend above the editor hides a kind you are not working on today
- Hover an underline for the name of the mistake and a short hint
- F7 jumps to the next mistake and Shift+F7 to the previous one
Explain
Why it is wrong, and how to say it better
Click an underline or a row of the list, and both are selected together. The explanation streams in as Markdown while the LLM writes it.
- Up to four parts: What is wrong, Why, Better ways and Remember
- The header says how often you have made this kind of mistake
- Regenerate asks the LLM again for another explanation
- Not an error is for when the LLM was wrong. The underline and the recorded count go away.
Check a selection
Check only the sentence you rewrote
Select a sentence, right-click and choose Check. Only the selected text is sent to the LLM. The mistakes inside the selection are replaced by the new result, and every other underline stays.
- While a check runs, a grey layer covers the editor, so that the result matches what you wrote
- The Check button changes into Cancel, and a cancelled check changes nothing
- Underlines follow your edits: the ones after a change move along, and the one you edited disappears
Alternatives
Correct, but it does not sound right
Select a word, a sentence or a paragraph, up to about 600 words, right-click and choose Alternative. A panel lists other ways to write the same thing.
- Double-click an alternative to put it in place of the selection. Ctrl+Z brings your words back.
- Copy puts it on the clipboard instead
- If you typed in the selected place meanwhile, nothing is replaced, and the panel tells you
Statistics
See which rules to study
The statistics count how often you make a mistake, not how many remain in a text. Fixing a mistake does not remove it from your history, and checking the same text again does not count it twice.
- A table by error type, for all time, 30 days or 7 days
- Your own words from the last three times you made the selected mistake
- The token usage of each LLM, which matters when you pay per use
- Only the Check button counts. The results of auto-check are underlined but not counted.
Around the editor
The smaller things that make it an app you leave open.
In a web browser
Start web server puts the same editor, list and explanations at
http://localhost:3333/. Each tab has its own text. Other computers are refused unless you set a password.It stays in the tray
Closing the window only hides it, and a running check keeps going. Only one copy runs, and starting it again shows the window you already have.
It tells you when it is done
Some models take a minute or more. When a check ends while you look at another window, a desktop message says “Check finished” with the number of issues.
Long texts in parallel
A long text is cut into parts. With Parallel requests from 1 to 16, several parts are checked at the same time.
Auto-check
Checks again when you stop typing for a few seconds. It is optional, and off by default.
Files and a library
Opens and saves
.txtand.mdfiles, and keeps texts with a title in a library inside the app. Unsaved changes are asked about.Keys
Ctrl+Return checks, or cancels the running check. Ctrl+N, Ctrl+O, Ctrl+S and Ctrl+Shift+S are New, Open, Save and Save As.
One folder
Your LLM list, the library, the statistics and the settings are in one SQLite file in
~/.english-tutor/, which only you can read.
What each kind covers
Every mistake has a type, such as verb tense or word order, and belongs to one of three kinds. The letter is what the issues list shows.
| Kind | Underline | What it covers | Letter |
|---|---|---|---|
| Grammar | orange, wavy | verb forms and tenses, agreement, articles, prepositions, plurals | G |
| Vocabulary | blue, dashed | a wrong word, confused words, collocations, spelling | V |
| Syntax | green, dotted | word order, a missing or extra word, run-on sentences, punctuation | S |
Sometimes the LLM names a mistake in words that are not in your text. Those cannot be underlined, and the status bar counts them as “could not be placed”.
Built on Glutter
The window, the editor with its underlines and the dialogs are drawn by my own GUI toolkit.
What English Tutor does not do
Better to read it here than to find it out.
- It runs on Linux only, with a Wayland compositor or an X server.
- It needs a C compiler (
gcc) to build, because the SQLite driver is a cgo binding. - API keys are stored in plain text in the database file. The permissions of the file are the only protection.
- The explanations are in English only.
- The prompts were tested with fake models and wire-level tests only, so a small local model may need prompt tuning. Some models are too small to find the mistakes.
- The browser version has no right-click menu, so Check on a selection and Alternative are only in the window. Its pages are plain HTTP, so use a password only on a network you trust.
Under the hood#
English Tutor is written in Go with Glutter and langchaingo. The LLM answers a check with a list of mistakes, and the app finds the place of each one in your text. A long text is sent in pieces. When the answer of the model is not in the expected format, the app says so.
Everything is kept in ~/.english-tutor/: an SQLite database with your LLM list, the documents of the library, the mistake statistics, the token usage and the settings, and a log that is rotated at 5 MB. All SQL goes through gorm, with numbered migrations.
The web server is off until you start it. Its pages use Datastar, which is inside the program, so they work without internet access. Without a password the server listens only on the loopback addresses, and API keys are never sent to the browser.
The tests of the window need no display: they run on Glutter’s test host with a fake clock, and with fake LLMs.
- Kind
- Application
- Language
- Go
- Runs on
- Linux
- License
- MIT
- Version
- v0.1.3
Start with one command
You need Go 1.27 or newer, gcc, and a running LLM: for example Ollama with a model such as llama3.1, an OpenAI-compatible server, or an Anthropic API key. The first build compiles SQLite and takes a minute or so.
# A local model, if you have none
$ ollama pull llama3.1
# Install the newest tagged version
$ go install github.com/rm4n0s/english-tutor/cmd/english-tutor@latest
# Start it, and add your LLM in Preferences
$ english-tutor
# Put it in your application menu
$ english-tutor -setup-desktop