Expand description
Source-grounded Relojban alphabet data and representative sound distances.
The registry describes the acquired grammar snapshot P01-S20261022.
representatives-v1 is a project-selected categorical articulatory profile;
it is not a measurement of perceived similarity. Comparisons are defined
only within the consonant and vowel classes.
§Examples
use bauske_phonology::{DistanceModel, Segment};
let result = DistanceModel::default().compare(
"p".parse::<Segment>()?,
"b".parse::<Segment>()?,
)?;
assert_eq!(result.total(), 1);Structs§
- Alphabet
Symbol - A validated alphabet symbol, including punctuation and boundaries.
- Analysis
Diagnostic - A diagnostic and optional original-input byte span.
- Buffer
Event - One caller-selected, unwritten buffer event at an original consonant position.
- Cluster
Inspection - A checked cluster inspection with local findings and source-length tension.
- Cluster
Source Tension - The unresolved §3.6/§3.7 description of four consonants in non-name medial context.
- Consonant
Weights - Positive costs for place, manner, and voicing mismatches.
- Diphthong
Record - Immutable source metadata for one listed diphthong.
- Distance
Explanation - A complete, immutable explanation of a successful comparison.
- Distance
Model - A categorical weighted-mismatch model over separate consonant and vowel classes.
- Feature
Contribution - One coordinate and its positive mismatch weight in a comparison.
- Nucleus
- A nucleus with an exact original-input byte span.
- Prosody
Limitation - A source limitation attached to a syllabification result.
- Realization
Plan - A selected plan that distinguishes written, performed, and countable nuclei.
- Segment
- One validated representative with numeric features.
- Stress
Analysis - A stress plan with explicit primary selection and context limitations.
- Syllabification
- A complete grouping or a limitation-only unresolved result.
- Syllable
- One conventionally or explicitly grouped syllable with original offsets.
- Symbol
Record - Immutable metadata for one alphabet entry.
- Vowel
Weights - Positive costs for height, backness, and rounding mismatches.
- Word
Analysis - A complete spelling-level inspection without a grammatical-validity verdict.
- Word
Cluster - A word-level cluster with canonical adjacency and original text offsets.
Enums§
- Analysis
Error - A malformed word-inspection request.
- Backness
- Vowel backness category used by
representatives-v1. - Cluster
Error - A malformed consonant-cluster request.
- Cluster
Position - The consonant cluster’s position in a declared word.
- Cluster
Violation - A source-grounded reason that a cluster requires attention.
- Compare
Error - A requested comparison is undefined by the selected model.
- Diagnostic
Kind - A named diagnostic produced by non-fatal source-policy inspection.
- Diphthong
Distribution - Source distribution group for the diphthong spelling.
- Feature
Dimension - The typed feature dimension shown in one comparison contribution.
- Feature
Value - A typed categorical feature value used in a comparison explanation.
- Features
- The feature payload for one selected representative.
- Following
Context - Declares whether a following word is an unpaused brivla for the final-stress guard.
- Glide
- The glide identity in a source-listed diphthong.
- Glide
Direction - Whether the glide precedes or follows the vowel element.
- Height
- Vowel height category used by
representatives-v1. - Manner
- The consonant manner category used by
representatives-v1. - Nucleus
Kind - The typed source identity of one written nucleus.
- Open
Policy - Open or variable pronunciation behavior retained as source metadata.
- Parse
Segment Error - A string could not be parsed as one scored representative segment.
- Parse
Symbol Error - A symbol string could not be resolved in the alphabet registry.
- Place
- The articulatory place category used by
representatives-v1. - Pronunciation
Profile - A finite project-selected representative profile, not an observed pronunciation.
- Prosody
Source Limitation - A named reason conventional grouping is unresolved or limited.
- Realization
Error - A typed invalid buffer annotation.
- Rounding
- Vowel rounding category used by
representatives-v1. - Segment
Class - One of the model’s two independently defined comparison classes.
- Stress
Choice - Selects how a nucleus is assigned a primary/weak/optional-weak level.
- Stress
Error - A named stress-planning error.
- Stress
Level - One selected written nucleus’s planned stress category.
- Syllabification
Mode - Selects the deterministic conventional grouping or explicit written hints.
- Symbol
Kind - Language-source role of one alphabet character.
- Voicing
- The voicing value used by
representatives-v1. - Word
Kind - A caller-declared word category for the contextual source rules.
Constants§
- PROFILE_
ID - Stable identifier for the project’s selected feature encoding.
- SOURCE_
ID - Stable identifier for the acquired language-source snapshot.
Functions§
- alphabet
- Returns the complete alphabet registry in source ASCII order.
- analyze_
word - Inspects one caller-declared word without inferring morphology or validity.
- assign_
stress - Plans stress over the nuclei already selected by
analyze_word. - diphthongs
- Returns the complete diphthong table in source order.
- initial_
pairs - Returns the 48 source-listed onset pairs in their original order.
- initial_
triples - Returns the 36 source-listed onset triples in their original order.
- inspect_
cluster - Inspects one consonant run under a caller-declared context and word class.
- open_
policies - Returns language-wide open realization policies not attached to one symbol.
- plan_
realization - Validates caller annotations for optional buffer events without synthesizing audio.
- profiles
- Returns the immutable listing of supported, named profiles.
- syllabify
- Groups selected word nuclei using a bounded project convention.