- C++ 55.7%
- Python 21.7%
- Shell 12.6%
- QML 9.8%
- QMake 0.2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
Records how it became public (internal visibility came from the orchestra account's private visibility; the transfer to the public-visibility account lifted it), the anonymous verification of repo, release and asset, the collaborator permissions after the move, and that the rpm package stayed with the orchestra user because packages do not follow a transfer. |
||
| .forgejo/workflows | ||
| data | ||
| docs | ||
| engine | ||
| icons | ||
| models | ||
| qml | ||
| rpm | ||
| sailjail | ||
| scripts | ||
| src | ||
| tests | ||
| tools | ||
| .gitignore | ||
| AGENTS.md | ||
| harbour-kieli.desktop | ||
| harbour-kieli.pro | ||
| LICENSE | ||
| README.md | ||
harbour-kieli
A Sailfish OS (Silica) notes/compose app with its own keyboard-quality input engine: next-word prediction, autocorrect, prefix completion, swipe decoding and per-user adaptation — running entirely on-device, offline, with models we build from public-domain corpora.
Working name Kieli (Finnish kieli — tongue, language).
Why an app and not a system keyboard
Sailfish OS does not expose a third-party InputMethodService hook. The system
keyboard (sailfish-keyboard, maliit-based) is closed and not extensible
through the official SDK, and harbour policy does not allow a privileged
replacement. So Kieli owns its text surface: a full-screen editor with a
QML-drawn keyboard. Everything SwiftKey-like happens inside that surface.
See docs/CONTRACT.md for the architecture, the frozen
KIELIM01 model format, the engine API and the quality gates.
What it does
| Feature | How |
|---|---|
| Next-word prediction | interpolated trigram LM, Stupid Backoff, pruned to ≤36 MB/lang |
| Autocorrect | noisy-channel over edit-distance candidates, spatial tap model (adjacent-key confusion) |
| Prefix completion | frequency-ordered trie built at load |
| Swipe typing | SHARK²-style shape scoring vs. path polyline, blended with LM |
| Learning | accepted/rejected words adjust a local personal model |
| Locales | en, cs |
Quality gates
Measured by tools/kieli-cli against a held-out corpus slice that never enters
training. Thresholds live in docs/CONTRACT.md §7 (autocorrect top-1 ≥ 80 %,
next-word top-3 ≥ 25 %, keystroke saving ≥ 20 %, swipe top-1 ≥ 70 %).
Install
The aarch64 harbour RPM is published as a release on git.bitp.cz/donach/harbour-kieli and appears in Forgejo Store (the owner's Sailfish store app) under Kieli.
Manual install on SFOS 5.2 aarch64:
pkcon install-local harbour-kieli-1.0.0-1.aarch64.rpm
Dictation is off by default. Turning it on asks for Internet and
Microphone and sends audio to the server you configure — nothing else in the
app opens a socket (docs/STT.md).
Build
The Sailfish SDK runs in a throwaway VM, never on the shared agent box:
vmctl create sfos-sdk --flavor full --ttl 2d --wait
vmctl ssh sfos-sdk -- 'sudo docker pull coderus/sailfishos-platform-sdk:5.2.0.15'
Then build the RPM inside that image (rpm/README.md).
The models are not in git — 36 MB each. tools/modelbuild regenerates them
from the public corpora recorded in data/PROVENANCE.md; the shipped RPM is
built with them present under models/.
Engine unit tests need no Qt and no SDK:
tests/run.sh # g++ -std=c++17, golden fixtures
Licence
App code: see LICENSE. Corpus-derived models: see data/PROVENANCE.md
(Wikipedia text is CC BY-SA 4.0 and is attributed in the app's About page and in
the RPM documentation).