Skip to main content

Crate vlajmaji_lexicon

Crate vlajmaji_lexicon 

Source
Expand description

A source-preserving envelope for captured lexical material.

The crate stores original bytes and exposes exact source records without merging definitions, languages, source IDs, or form roles.

§Examples

use vlajmaji_lexicon::{Lexicon, SourceFormat, SourceMetadata, TimePrecision};
let input = br#"[{"word":"farvi","definition":"first"},{"word":"farvi","definition":"second"}]"#;
let metadata = SourceMetadata::new(
    "fixture", "farvi.json", SourceFormat::LaLojbanJson,
    "https://example.invalid/farvi.json", "fixture-v1", None,
    TimePrecision::Unknown,
);
let mut lexicon = Lexicon::new();
lexicon.import_source(metadata, input, None)?;
assert_eq!(lexicon.lookup_exact("farvi").len(), 2);

Lexicon is the entry point. CapturedRecord provides a borrowed source view, while SourceMetadata and RecordIdentity retain identity.

Re-exports§

pub use dictionary::ArgumentFrameRecord;
pub use dictionary::ArgumentSlot;
pub use dictionary::AssertionRecord;
pub use dictionary::Availability;
pub use dictionary::CaptureMetadata;
pub use dictionary::CaptureRef;
pub use dictionary::CatalogTarget;
pub use dictionary::CodeNotice;
pub use dictionary::CollectionRecord;
pub use dictionary::ComponentRecord;
pub use dictionary::ComputationRecord;
pub use dictionary::ComputedAnnotation;
pub use dictionary::ContentNotice;
pub use dictionary::ContextKind;
pub use dictionary::ContextRecord;
pub use dictionary::Dictionary;
pub use dictionary::DictionaryDocument;
pub use dictionary::DictionaryError;
pub use dictionary::DictionaryMetadata;
pub use dictionary::Direction;
pub use dictionary::EditorialSenseRecord;
pub use dictionary::Eligibility;
pub use dictionary::EntityId;
pub use dictionary::EntryRecord;
pub use dictionary::EtymologyRecord;
pub use dictionary::ExtensionRecord;
pub use dictionary::FormKind;
pub use dictionary::FormRecord;
pub use dictionary::InputRef;
pub use dictionary::LocalRef;
pub use dictionary::NamedTimestamp;
pub use dictionary::NativeEncoding;
pub use dictionary::NativeField;
pub use dictionary::OccurrenceRef;
pub use dictionary::OrderedComponent;
pub use dictionary::OwnedHead;
pub use dictionary::OwnedRevisionRecord;
pub use dictionary::PosMapping;
pub use dictionary::Presence;
pub use dictionary::RawCapture;
pub use dictionary::RawJson;
pub use dictionary::RawOccurrence;
pub use dictionary::RedistributionStatus;
pub use dictionary::RelationKind;
pub use dictionary::RelationRecord;
pub use dictionary::RelationScope;
pub use dictionary::RelationTarget;
pub use dictionary::ReleaseAccounting;
pub use dictionary::ReleaseDiagnostic;
pub use dictionary::ReleaseRecord;
pub use dictionary::SourceEvidence;
pub use dictionary::TextRange;
pub use dictionary::TextValue;
pub use registry::AbbreviationKind;
pub use registry::AliasScope;
pub use registry::AliasStatus;
pub use registry::ContributorId;
pub use registry::ContributorRecord;
pub use registry::DistributorId;
pub use registry::DistributorRecord;
pub use registry::LineageTarget;
pub use registry::OccurrenceAttribution;
pub use registry::RegistryDocument;
pub use registry::RegistryError;
pub use registry::SnapshotAttribution;
pub use registry::SourceAlias;
pub use registry::SourceId;
pub use registry::SourceLineage;
pub use registry::SourceOrigin;
pub use registry::SourceRecord;
pub use registry::SourceRegistry;

Modules§

dictionary
Versioned source-preserving dictionary data. This module is an explicit normalized projection over immutable captures; it does not infer linguistic structure or rewrite legacy archives. Presence is explicit throughout: Missing, source-level Null, and present values remain distinct.
registry
Validated source, contributor, distributor, alias, and lineage registry.

Structs§

AttributedOccurrence
A borrowed captured occurrence joined to its registered source identities.
CapturedRecord
One captured lexical or morphology record with its source-native fields.
FormAssertion
A source-backed or source-reported form assertion.
Lexicon
In-memory collection of captured source records and separate proposals.
Proposal
An explicitly experimental proposal, separate from captured sources.
RawField
A field’s decoded name and retained source value.
RecordIdentity
Stable identity for a record within its source snapshot.
SnapshotIdentity
Stable identity of one immutable source snapshot.
SourceCrossReference
One bounded literal cross-reference parsed from an explicit notes clause.
SourceMetadata
Caller-supplied source and capture provenance.

Enums§

FieldPresence
Presence and retained source spelling of a source field.
FormRole
Distinguishes source-reported forms from assigned LLG rafsi.
ImportError
Typed import and archive failures.
SourceFormat
The captured representation received from one source.
TimePrecision
Precision available for a capture timestamp.