wordnet-types 0.1.3

Shared types and part-of-speech enums for WordNet data.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# wordnet-types

Zero-copy Rust types that mirror WordNet's `data.*` and `index.*` records. These structs back [`wordnet-db`](https://crates.io/crates/wordnet-db) for loading dictionaries and pair with [`wordnet-morphy`](https://crates.io/crates/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`]https://crates.io/crates/wordnet-db: loads WordNet dictionaries using these types.
- [`wordnet-morphy`]https://crates.io/crates/wordnet-morphy: uses `Pos` and other types while emitting lemma candidates.

## Docs
- API reference: https://docs.rs/wordnet-types