Kieli — Sailfish OS notes app with its own keyboard-quality input engine (offline trigram LM, autocorrect, swipe); optional dictation via a self-hosted STT backend
  • C++ 55.7%
  • Python 21.7%
  • Shell 12.6%
  • QML 9.8%
  • QMake 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
SFOS 1250399530 docs: repo transferred to donach/harbour-kieli and now public
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.
2026-11-21 15:29:34 +01:00
.forgejo/workflows Fix cross-language model interop: reader rejected every Python-written file 2026-11-19 11:29:38 +01:00
data modelbuild: build en+cs models, hold out eval slices, add REPORT.md 2026-11-19 12:02:59 +01:00
docs docs: repo transferred to donach/harbour-kieli and now public 2026-11-21 15:29:34 +01:00
engine Fix STT build on Sailfish Qt 5.6: missing NOTIFY signal, overloaded sslErrors 2026-11-20 12:41:35 +01:00
icons RE report, AXML reader with tests, icons, CI and SDK build script 2026-11-19 10:15:21 +01:00
models WIP: preserve work at the OpenCode Go usage limit 2026-11-19 10:35:46 +01:00
qml W6: fix the read-only PageHeader.extraContent, report SDK evidence 2026-11-20 12:37:22 +01:00
rpm Package dictation: QT += multimedia, Sailjail profile in the RPM 2026-11-20 12:19:34 +01:00
sailjail STT: integration spec, frozen client interface, dictation permissions 2026-11-20 12:08:49 +01:00
scripts Dictation ships: RPM with Sailjail profile, verified against the live backend 2026-11-20 12:43:34 +01:00
src W6: settings inside the sandbox, Qt 5.6/5.9 redirect portability 2026-11-20 12:20:43 +01:00
tests Merge W6-sttaudio: audio capture, dictation controller and UI 2026-11-20 12:38:53 +01:00
tools STT: integration spec, frozen client interface, dictation permissions 2026-11-20 12:08:49 +01:00
.gitignore Shippable RPM with both models: 23.3 MB, pre-ship gate exit 0 2026-11-19 12:14:38 +01:00
AGENTS.md STT: integration spec, frozen client interface, dictation permissions 2026-11-20 12:08:49 +01:00
harbour-kieli.desktop Scaffold Kieli: contract, engine/UI/model stubs, harbour packaging 2026-11-19 10:10:04 +01:00
harbour-kieli.pro Fix STT build on Sailfish Qt 5.6: missing NOTIFY signal, overloaded sslErrors 2026-11-20 12:41:35 +01:00
LICENSE Add LICENSE, verification runbook 2026-11-19 10:19:22 +01:00
README.md Docs: say plainly that models are not in git and how to regenerate them 2026-11-20 22:26:11 +01:00

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).