Skip to content

Repository files navigation

Swift Version Xcode Version Platforms SPM DocC License CI Release

LexiconKit

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"]
)

Documentation

API documentation is published with DocC after a GitHub release. See the LexiconKit documentation.

Runtime diagnostics

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.

Requirements

  • Swift 6.4
  • Xcode 27
  • Apple platform versions shown in the badge above
  • Swift Package Manager

About

Models and manages personal vocabulary collections, definitions, and learning metadata. 📖

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Contributors

Languages