wordnet-db 0.1.3

Memory-mapped reader for prebuilt WordNet database files.
Documentation

wordnet-db

Load WordNet dictionaries with zero-copy text and expose full-fidelity records. Backed by wordnet-types for shared layouts and designed to plug straight into wordnet-morphy for lemmatization checks.

Why it's fast

  • Memory-map or buffer the canonical data.*/index.* files (choose at runtime) and borrow all text directly from them.
  • Minimal copying: lemmas, pointer symbols, glosses, and indices stay as &str; numeric fields keep their raw offsets and IDs.
  • Single-pass parsing builds dense in-memory maps for lemma existence, synset lookup, and streaming iteration.

Related crates

  • wordnet-types: shared zero-copy structs used by this loader.
  • wordnet-morphy: uses WordNet::lemma_exists (or any equivalent predicate) to verify candidates.

Docs