wordnet-types 0.1.3

Shared types and part-of-speech enums for WordNet data.
Documentation

wordnet-types

Zero-copy Rust types that mirror WordNet's data.* and index.* records. These structs back wordnet-db for loading dictionaries and pair with wordnet-morphy to describe POS information during lemmatization.

Why it's fast

  • Text is borrowed (&str) from the original files; no cloning or normalization on load.
  • Numeric fields stay in their raw WordNet representation (offset, lex_id, ss_type), avoiding conversions.
  • Plain data-holding structs mean zero I/O and zero parsing overhead here; the crate is just shared layout.

Related crates

  • wordnet-db: loads WordNet dictionaries using these types.
  • wordnet-morphy: uses Pos and other types while emitting lemma candidates.

Docs