wordnet-types

Crates.iowordnet-types
lib.rswordnet-types
version0.1.3
created_at2026-01-01 10:35:58.188259+00
updated_at2026-01-01 12:53:42.706027+00
descriptionShared types and part-of-speech enums for WordNet data.
homepagehttps://github.com/johanneswd/crosswordsolver
repositoryhttps://github.com/johanneswd/crosswordsolver
max_upload_size
id2016025
size7,578
(johanneswd)

documentation

https://docs.rs/wordnet-types

README

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

Commit count: 0

cargo fmt