hex/ios/scripts
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel 7e08ef47da iOS keyboard: build Polish's typing model with the shared builder, from pinned NKJP, ParlaMint and PoliMorf inputs
build-typing-model.py pl <work> pl.hextm [nkjp+parlamint|nkjp|parlamint] builds the Polish
model that passed the typing gate on the iOS engine. Polish has no Google Books counts, so:
- words and pairs come from NKJP's n-grams (300M-word balanced subcorpus), kept where PoliMorf
  lists the word;
- a plain spelling goes when NKJP or ParlaMint 5.0 (which writes every mark) has its marked twin
  at least 20 times as often ('ide' is 3.6 times rarer than 'idę' in NKJP, 97 times in
  ParlaMint); each corpus alone failed the gate (ParlaMint changed 0.84% of correct words, NKJP
  kept 'ide');
- a pair may span a comma ('wiem, że' is typed 'wiem że'); pairs need 10 sightings in NKJP;
- ł's base letter is l (BASES), as é's is e;
- it also writes <output>.valid, PoliMorf's other words NKJP uses at least twice, in Android's
  validity-list format, for the dictionary reader Polish needs on iOS.
POLISH_INPUTS names each input's URL, licence and SHA-256; the build refuses a changed file.
English and Spanish take the same code path as before; write_model's pair threshold became a
parameter whose default is the old MIN_PAIR.

Rebased onto dev 06ac30af with #2408's English contractions and extra words; both kept.

Verified: Polish rebuilds the gated model byte for byte (SHA-256 10da84ee..., 150,000 words,
184,327 pairs, the same 525,084 validity words). English and Spanish: see the pull request.
2026-11-22 14:05:17 -05:00
..
build-emoji-data.py iOS: emoji panel with on-device suggestions (Experiments › Emoji) (#2051) 2026-11-20 15:53:24 +00:00
build-german-capitals.py iOS: German autocorrect capitalises common nouns (haus, auto, zeit) (#2169) 2026-11-21 05:30:03 -05:00
build-typing-model.py iOS keyboard: build Polish's typing model with the shared builder, from pinned NKJP, ParlaMint and PoliMorf inputs 2026-11-22 14:05:17 -05:00
emoji-aliases-en.txt iOS: emoji panel with on-device suggestions (Experiments › Emoji) (#2051) 2026-11-20 15:53:24 +00:00
en-extra-words.tsv English typing model: contractions as common as their words, and Hex's chat and tech words (#2408) 2026-11-22 13:40:28 -05:00
fetch-cleanup-model.sh iOS: clean up what I say with an on-device tagger (experiment) (#2023) 2026-11-20 01:29:41 +00:00
marketing-release.sh iOS: TestFlight stays on 0.9.0, and App Store releases are tagged 1.0.x (#2194) 2026-11-21 09:11:30 -05:00
typing-gate.py iOS keyboard: French reads Hex's own word list and capitals, not the phone's dictionary (#2404) 2026-11-22 13:34:40 -05:00