hex/ios/HEXShared/FullKeyboard/never-suggest.tsv
Sebastian Herrlinger e9ed297161 iOS keyboard: autocorrect runs on the Rust core
AutocorrectEngine keeps its Swift API and decides nothing itself: every suggestion,
replacement, revision and answer about a word is the core's (hk_autocorrect_*), with
the spelling dictionary behind a callback (KeyboardCoreChecker over TextChecking, so
SystemTextChecker and Hex's own words stay as they are) and your lexicon, vocabulary,
learning and settings handed over as plain data. LearnedWordsStore stays on disk here:
before each call the engine hands the core the kept words of a list that is another
one, or changed (its new revision). The letter grid goes over from
KeyboardLanguage.keyCoordinates whenever the layout language or letters change.

OffensiveWords and GermanCapitals are the core's lists (hk_never_suggest_*,
hk_german_capitals_*). The bundled never-suggest.tsv is Android's, the union of both
apps' lists (decided: French and Italian rows on iOS too, read by base language).
Swift's copies of what moved go: the starters, common and two-letter words, accents,
dictionary codes (spellCheckCandidates reads the manifest), typo and contraction
lists, and the decision logic (AutocorrectEngine+Accents, +Dictionaries and
+Vocabulary). KeyboardCoreLinkTests checks every keyboard language has a manifest.
2026-11-23 07:42:38 +01:00

16 KiB
Raw Permalink Blame History

1# LDNOOBW (CC BY 4.0), curated by Hex. Attribution and source revision: Settings › Acknowledgements (AcknowledgementsView.swift). Same entries as android/app/src/main/assets/typing/never-suggest.tsv.
2# layout<TAB>slur|swear<TAB>whole spelling (or an exact two-word expression).
3# * = shared loanword with the same restriction in every layout.