mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-22 12:15:55 +08:00
* Android: bundle a curated, attributed never-suggest list Separate identity slurs from opt-in profanity for English, Spanish, German and Bokmål, reusing CC BY 4.0 LDNOOBW data with an explicit source revision, modifications and credit on the in-app licences screen. Include common inflections, keep neutral anatomy and ordinary local meanings, and match selected expressions as whole pairs. Checked all 653 rows against the pinned four upstream lists, verified the attribution and licence, and compared all four HXTM files from Android, iOS and the debug APK byte-for-byte. No language model or probability is replaced. * Android: filter keyboard candidates without rewriting typed words Replace unconditional HXTM output with lookup-time flags for prefix and next-word suggestions, deterministic fixes, whole-word spatial readings, and both halves of missed spaces. Still use blocked words for probabilities, and keep a fully typed spelling (including out-of-model words) through space or a distinct literal chip. The Inter Keyboard switch enables profanity only; preference-aware caches refresh even in the active editor. Verified 8 filter tests and 5 existing tests in each of debug and release, including every curated entry across the four layouts. Reproduced offensive suggestions and space replacements on the Studio API 35 IME before the change; after it, confirmed safe near-miss results, intentional literals, live toggle refresh, and light/dark settings. The 4,000-sentence phase-4 replay changed English WER from 7.4045% to 7.4117% and left Spanish at 10.3301%.