Skip to main content

Crate bauske

Crate bauske 

Source
Expand description

§Bauske

An umbrella library for Bauske, a (Re)Lojban linguistic workbench. It re-exports the phonology library as bauske::phonology.

§Component crates

CrateRoleDocumentation
bauske-phonologyInventories, articulatory features, explainable segment comparisons, clusters, prosody, and pronunciation realization.API docs
bauske-cliThe separately installed bauske command-line tool.API docs and CLI guide

Use this crate for the umbrella namespace, or depend on a component crate directly. The CLI package is installed separately from the library.

§Use as a library

[dependencies]
bauske = "0.2.0"

§Example

use bauske::phonology::{DistanceModel, Segment};

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let comparison = DistanceModel::default().compare(
        "p".parse::<Segment>()?,
        "b".parse::<Segment>()?,
    )?;
    assert_eq!(comparison.total(), 1);
    Ok(())
}

The categorical distance model is not perceptually calibrated and does not provide a whole-word rhyme score. Source limitations and unresolved analyses remain explicit in the underlying APIs.

Requires Rust 1.98 or newer. Licensed under Apache-2.0.

Modules§

phonology
Phonological inventories, segment comparisons, word analysis, and prosody. Source-grounded Relojban alphabet data and representative sound distances.