LexiconKit is a reusable, UI-agnostic domain package for personal vocabulary collections and immutable lexical model lookup.
LexiconKit provides persistence-friendly vocabulary values plus a synchronous, language-neutral reader for versioned packed lexicon artifacts. Translation, fuzzy or semantic inference, language-specific display articles, exercises, persistence frameworks, synchronization, and UI remain outside its boundary.
let entry = LexiconEntry(
term: LexiconTerm(
text: "Haus",
languageCode: "de",
grammaticalGender: .neuter
),
definitions: [
LexiconDefinition(
text: "house",
languageCode: "en",
source: .user
)
]
)Open a bundled model lazily and perform exact lemma or inflected-form lookup without deserializing the corpus:
let model = try LexiconModel(
contentsOf: modelURL,
manifestURL: manifestURL
)
let result = try model.matchSense(
for: "See",
gloss: "lake",
languageCodes: ["en"]
)API documentation is published with DocC after a GitHub release. See the LexiconKit documentation.
LexiconKit logs privacy-safe model-open success and failure through its package-local gateway, subsystem com.thatfactory.lexiconkit, and canonical 📖 prefix. It never logs model paths, lookup terms, glosses, or vocabulary content. Individual lookups remain silent.
- Swift 6.4
- Xcode 27
- Apple platform versions shown in the badge above
- Swift Package Manager