is-it-slop
Fast AI text detection using TF-IDF and ensemble classifiers.
Features
- Fast: Rust-based preprocessing
- Accurate: 96%+ accuracy (F1 0.96, MCC 0.93)
- Portable: ONNX model embedded in CLI binary
- Dual APIs: Rust library + Python bindings
Installation
CLI (Rust)
Model artifacts (16 MB) are downloaded automatically during build from GitHub releases.
Python Package
# or
Rust Library
Quick Start
CLI
# Output: 0.234 (AI probability)
# Output: 0 (Human) or 1 (AI)
Python
=
>>>
>>> : 15.23%
Rust
use Predictor;
let predictor = new;
let prediction = predictor.predict?;
println!;
Architecture
Training (Python):
Texts -> RustTfidfVectorizer -> TF-IDF -> sklearn models -> ONNX
Inference (Rust CLI):
Texts -> TfidfVectorizer (Rust) -> TF-IDF -> ONNX Runtime -> Prediction
Why separate artifacts?
- Vectorizer: Fast Rust preprocessing.
Python bindings make it easy to train a model in Python and use it in Rust.
- Model: Portable ONNX format (no Python runtime needed)
Training
See notebooks/dataset_curation.ipynb for which datasets were used.
See notebooks/train.ipynb for training pipeline.
Great care was taken to use multiple diverse datasets to avoid overfitting to any single source of human or AI-generated text. Great care was also taken to avoid the underlying model just learning artifacts of specific datasets.
For more information about look in the notebooks/ directory.