sonai

Crates.iosonai
lib.rssonai
version0.4.2
created_at2025-07-28 09:31:37.184797+00
updated_at2025-09-08 00:53:53.695642+00
descriptionGeneric AI Text Detection for rust
homepage
repository
max_upload_size
id1770898
size23,106
elijah629 (elijah629)

documentation

README

sonai

You can run the latest pre-trained version of the model in your own projects like this

cargo add sonai
use sonai::{predict, Prediction};

fn main() {
    let Prediction { chance_ai, chance_human } = predict("Hello, world!");

    let chance_ai = chance_ai * 100;
    let chance_human = chance_human * 100;

    println!("{chance_ai}% ai, {chance_human}% human");
}

License

Licensed under either of Apache License, Version 2.0 or MIT license at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.
Commit count: 0

cargo fmt