wordnet-db

Crates.iowordnet-db
lib.rswordnet-db
version0.1.3
created_at2026-01-01 10:54:06.024892+00
updated_at2026-01-01 12:53:46.596595+00
descriptionMemory-mapped reader for prebuilt WordNet database files.
homepagehttps://github.com/johanneswd/crosswordsolver
repositoryhttps://github.com/johanneswd/crosswordsolver
max_upload_size
id2016048
size35,645
(johanneswd)

documentation

https://docs.rs/wordnet-db

README

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

Commit count: 0

cargo fmt