bauske 0.2.0

Umbrella crate for (Re)Lojban phonology and linguistic tools.
Documentation
  • Coverage
  • 100%
    1 out of 1 items documented1 out of 1 items with examples
  • Size
  • Source code size: 15.4 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.4 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 2s Average build duration of successful builds.
  • all releases: 2s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • oxur/bauske
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • oubiwann

Bauske

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

Component crates

Crate Role Documentation
bauske-phonology Inventories, articulatory features, explainable segment comparisons, clusters, prosody, and pronunciation realization. API docs
bauske-cli The 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.