The AI in Lorius stays on your computer
How Lorius says words and translates them with two small models that run offline, which ones we chose, and what we measured before choosing.
Lorius has two AI features: a voice that says words and reads sentences, and a translator that puts a paragraph, or one word in its sentence, into your language. Both are models you download once from Settings. After that they run on your computer, without the internet, without a key and without an account. Nothing you read is sent anywhere.

The voice: Kokoro
The voice your system already has reads a word as it is spelled, so record the noun and record the verb sound the same, and so do present, live and tear. Lorius knows how each word is said: it comes with transcriptions from Wiktionary, by part of speech. So it needed a voice that can read a transcription.
Kokoro is a speech model of 82 million parameters under the Apache 2.0 licence. It reads phonemes, so Lorius turns a word’s American transcription into Kokoro’s phonemes and the noun and the verb come out different, as a dictionary says them. The download is 101 MB. On an M-series Mac a word takes about 0.2 seconds, a sentence about 0.5, and the first word after a launch about 3 while the model loads.
Sentences are harder: they hold words in every form and names no dictionary has. Lorius looks each word up in misaki’s American dictionaries (about 180,000 words, downloaded with the voice), adds endings such as -s, -ed and -ing to the words they know, and says numbers as words. A word in neither dictionary, usually a made-up name, is guessed by a small model that comes with the app, the one Kitten TTS uses to turn letters into sounds. On 400 sentences from two novels, Lorius reads 398 this way. About one name in five comes out wrong, but it still sounds like a word, and the names are not what you are learning.
The voice is American only. We tried Kokoro’s British speakers too: on 29 short words, Whisper recognised 11 to 18 of them from the British voices and 23 to 24 from the American ones, and they sound that bad to the ear. British words are still said by your system’s voice. You can pick one of four American voices: Heart, Bella, Michael or Fenrir.
The translator: quickmt
A word on its own is translated badly by every model we tried: mean or fond has too many senses. So Lorius translates a word in its sentence. It translates the sentence, then asks the model where in that translation the word would go, and marks the words there. That way bank in “the bank of the river” and in “money in the bank” get different translations.
Before choosing a model we gave six of them 26 English sentences, 15 of them with a word of several senses (bank, strike a match and the match ended, kept the change, a mean old woman), and counted how often the translation into Ukrainian had the right sense:
| Model | Download | Right sense |
|---|---|---|
| quickmt-en-uk | 206 MB | 15 of 15 |
| opus-mt-tc-big-en-zle | 243 MB | 13 of 15 |
| Firefox Translations (base) | 35 MB | 12 of 15 |
| Kulyk (LFM2-350M) | 229 MB | about 9 |
| M2M100 418M | 491 MB | about 8 |
quickmt also has models from English into 29 languages, each between 206 and 413 MB, under CC BY 4.0. A sentence takes 0.1 to 0.7 seconds. What it translated is kept in your library, so a paragraph you translated once comes back at once, even after the model is removed.
It has limits. Idioms are translated word for word, and a rare word or a name may be left in English. Only the Ukrainian model has been tried in the app so far; the others are run the same way.
The downloads
Each file is fetched from where its makers publish it, at a fixed version, and kept only when its size and SHA-256 match. A download can be paused, and one cut off by the network or by quitting the app goes on from where it stopped. Remove in Settings deletes a model.
The app itself grows by about 24 MB for all this: the runtimes for both models and the small name-guessing model. Everything else is the download you choose to make.
