| Crates.io | sonai |
| lib.rs | sonai |
| version | 0.4.2 |
| created_at | 2025-07-28 09:31:37.184797+00 |
| updated_at | 2025-09-08 00:53:53.695642+00 |
| description | Generic AI Text Detection for rust |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1770898 |
| size | 23,106 |
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");
}