galm 0.0.2

GalM is pattern matching library.
docs.rs failed to build galm-0.0.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: galm-0.2.4

GalM

Actions Status Crate

GalM is pattern matching library.

galm

Inspired by Galmoji.

Quick start

Put the following in your project's Cargo.toml file:

[dependencies]
galm = "0.0.2"

And overwrite in your project's main.rs file:

fn main() {
    let galm: galm::Database = galm::new();
    let distance: u8 = galm.get_distance("", "");

    assert_eq!(distance, 30);
}

Example

Print the most similar string from the strings separated by commas.

# build
cargo build --example galm --release

# use
./target/release/examples/galm "王様レストラン" -d "皇様レストラン,玉様レストラン,大様レストラン"
# => 玉様レストラン