Skip to main content

Detecting AI generated text using statistical ML models and TF-IDF vectorization

Project description

is-it-slop

Python bindings for the is-it-slop AI text detection library.

Features

  • Fast inference: Rust-backed ONNX runtime
  • Pre-trained model: Embedded at compile time
  • Simple API: Single function call for predictions
  • Batch processing: Efficient multi-text inference

Installation

uv add is-it-slop
# or
pip install is-it-slop

Quick Start

from is_it_slop import is_this_slop

# Predict on single text
result = is_this_slop("Your text here")
print(result.classification)  # "Human" or "AI"
print(f"AI probability: {result.ai_probability:.2%}")

# Use custom threshold
result = is_this_slop("Your text here", threshold=0.7)
print(result.classification)

# Batch processing
from is_it_slop import is_this_slop_batch

texts = ["First text", "Second text", "Third text"]
results = is_this_slop_batch(texts)
for text, result in zip(texts, results):
    print(f"{text}: {result.classification}")

API Overview

Functions

is_this_slop(text, threshold=None)

Predict whether a single text is AI-generated or human-written.

  • text: Input text string
  • threshold: Optional classification threshold (0.0-1.0)
  • Returns: Prediction object

is_this_slop_batch(texts, threshold=None)

Predict whether multiple texts are AI-generated or human-written.

  • texts: List of text strings
  • threshold: Optional classification threshold (0.0-1.0)
  • Returns: List of Prediction objects

Prediction Object

Result object with classification and probabilities:

  • classification: String, either "Human" or "AI"
  • human_probability: Float (0.0-1.0), probability of human-written
  • ai_probability: Float (0.0-1.0), probability of AI-generated

Constants

CLASSIFICATION_THRESHOLD

Default threshold value used for classification. This threshold is set to optimize for overall F1 score based on validation data.

CLI Tool

For command-line usage, install the Rust binary:

cargo install is-it-slop --features cli
is-it-slop "Your text here"

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

is_it_slop-0.4.0.tar.gz (40.4 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

is_it_slop-0.4.0-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl (24.9 MB view details)

Uploaded PyPymanylinux: glibc 2.28+ x86-64

is_it_slop-0.4.0-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl (24.4 MB view details)

Uploaded PyPymanylinux: glibc 2.28+ ARM64

is_it_slop-0.4.0-cp314-cp314t-manylinux_2_28_aarch64.whl (24.4 MB view details)

Uploaded CPython 3.14tmanylinux: glibc 2.28+ ARM64

is_it_slop-0.4.0-cp314-cp314-win_amd64.whl (22.2 MB view details)

Uploaded CPython 3.14Windows x86-64

is_it_slop-0.4.0-cp314-cp314-manylinux_2_28_x86_64.whl (24.9 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ x86-64

is_it_slop-0.4.0-cp314-cp314-manylinux_2_28_aarch64.whl (24.4 MB view details)

Uploaded CPython 3.14manylinux: glibc 2.28+ ARM64

is_it_slop-0.4.0-cp314-cp314-macosx_11_0_arm64.whl (23.1 MB view details)

Uploaded CPython 3.14macOS 11.0+ ARM64

is_it_slop-0.4.0-cp313-cp313t-manylinux_2_28_aarch64.whl (24.4 MB view details)

Uploaded CPython 3.13tmanylinux: glibc 2.28+ ARM64

is_it_slop-0.4.0-cp313-cp313-win_amd64.whl (22.2 MB view details)

Uploaded CPython 3.13Windows x86-64

is_it_slop-0.4.0-cp313-cp313-manylinux_2_28_x86_64.whl (24.9 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ x86-64

is_it_slop-0.4.0-cp313-cp313-manylinux_2_28_aarch64.whl (24.4 MB view details)

Uploaded CPython 3.13manylinux: glibc 2.28+ ARM64

is_it_slop-0.4.0-cp313-cp313-macosx_11_0_arm64.whl (23.1 MB view details)

Uploaded CPython 3.13macOS 11.0+ ARM64

is_it_slop-0.4.0-cp313-cp313-macosx_10_12_x86_64.whl (24.0 MB view details)

Uploaded CPython 3.13macOS 10.12+ x86-64

is_it_slop-0.4.0-cp312-cp312-win_amd64.whl (22.2 MB view details)

Uploaded CPython 3.12Windows x86-64

is_it_slop-0.4.0-cp312-cp312-manylinux_2_28_x86_64.whl (24.9 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

is_it_slop-0.4.0-cp312-cp312-manylinux_2_28_aarch64.whl (24.4 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ ARM64

is_it_slop-0.4.0-cp312-cp312-macosx_11_0_arm64.whl (23.1 MB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

is_it_slop-0.4.0-cp312-cp312-macosx_10_12_x86_64.whl (24.0 MB view details)

Uploaded CPython 3.12macOS 10.12+ x86-64

is_it_slop-0.4.0-cp311-cp311-win_amd64.whl (22.2 MB view details)

Uploaded CPython 3.11Windows x86-64

is_it_slop-0.4.0-cp311-cp311-manylinux_2_28_x86_64.whl (24.9 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ x86-64

is_it_slop-0.4.0-cp311-cp311-manylinux_2_28_aarch64.whl (24.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.28+ ARM64

is_it_slop-0.4.0-cp311-cp311-macosx_11_0_arm64.whl (23.1 MB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

is_it_slop-0.4.0-cp311-cp311-macosx_10_12_x86_64.whl (24.0 MB view details)

Uploaded CPython 3.11macOS 10.12+ x86-64

File details

Details for the file is_it_slop-0.4.0.tar.gz.

File metadata

  • Download URL: is_it_slop-0.4.0.tar.gz
  • Upload date:
  • Size: 40.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: maturin/1.10.2

File hashes

Hashes for is_it_slop-0.4.0.tar.gz
Algorithm Hash digest
SHA256 82a8f6e3247024e28184eb32f3a164d5f5dbe3dbce3126aa0843d40a3b43ce55
MD5 64fa2554636527def860134fe51e7663
BLAKE2b-256 556096c67d24b105362718b62e59b74c47b08d02095a5a0be5e0f06c2f2aa41a

See more details on using hashes here.

File details

Details for the file is_it_slop-0.4.0-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for is_it_slop-0.4.0-pp311-pypy311_pp73-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 24034b8a2e1c40e118ff4ac98deefb3835abc01a98a17cf3df8f276dc48190cb
MD5 1501266f34a4921264387df0079eadb9
BLAKE2b-256 fd403232b4f04c8a467f72b0a631d9f08cce4eb2349e77f7c593ee2acc0e035e

See more details on using hashes here.

File details

Details for the file is_it_slop-0.4.0-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for is_it_slop-0.4.0-pp311-pypy311_pp73-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2a3cf44a0929f83b5be5bb7bc6cfcac56d31b36564ff5219022502634cd74da0
MD5 29922d97a0cb4bae9cdfee724dfdeb9a
BLAKE2b-256 60fc5c0ed6cabaeea729e5289ae1024430972236b6dc00c3fbd7be54b7a2fc33

See more details on using hashes here.

File details

Details for the file is_it_slop-0.4.0-cp314-cp314t-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for is_it_slop-0.4.0-cp314-cp314t-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c38829cd256850de95629c902e554fa80efd1dffdfe33f78a3a32c80e3cf34f2
MD5 a40b30e9f7336d10c6e533012a1d1f26
BLAKE2b-256 ae5b5678700e70f5cdf97a45f020cc00008146ea45ac133576b005f4558d0ad9

See more details on using hashes here.

File details

Details for the file is_it_slop-0.4.0-cp314-cp314-win_amd64.whl.

File metadata

File hashes

Hashes for is_it_slop-0.4.0-cp314-cp314-win_amd64.whl
Algorithm Hash digest
SHA256 2306f5585beb91565b987e74ce72f6e2f6ee8cdc83c5b6722d5c0b4392c07fa5
MD5 6be870658ab78003029b2441c086c078
BLAKE2b-256 7ebcb5e99204d7f40d0152f312115dbfaeb79260ac26f595236615874a348b09

See more details on using hashes here.

File details

Details for the file is_it_slop-0.4.0-cp314-cp314-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for is_it_slop-0.4.0-cp314-cp314-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4322adb33b95eb7200448c9d3d0f696af7b584018845d0e73ebe2e373a4693a8
MD5 ae9bacc943145ec69a5bacc0eb0dae43
BLAKE2b-256 a8af46c883b3e993ef87334fd82851815a54714239300ac070a1a9c07fdfe2a0

See more details on using hashes here.

File details

Details for the file is_it_slop-0.4.0-cp314-cp314-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for is_it_slop-0.4.0-cp314-cp314-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 78de51ea8c549852477a2d3a8034067e3c9d1a14705288df991cbbd307c68887
MD5 61b5f04353002742ccbd04b881ed8b3b
BLAKE2b-256 96ab3541f3b29c16a5ea7d52f88a67161dfcc592be5407d102cde74c8618a741

See more details on using hashes here.

File details

Details for the file is_it_slop-0.4.0-cp314-cp314-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for is_it_slop-0.4.0-cp314-cp314-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 ac1e017c75570a0383ecd8f8f453d73584f718b7eee741549d3c244ed6935bdf
MD5 803f74b27934a568d4c255e0cc1b7285
BLAKE2b-256 86d793f8491247d22e0b2f0863e4e1152318689beb46e0dd295d7d3d1df17e0c

See more details on using hashes here.

File details

Details for the file is_it_slop-0.4.0-cp313-cp313t-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for is_it_slop-0.4.0-cp313-cp313t-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 2f5f8e6ea11c011c30fe9c633b6d22aabeec331020288960144a21c906a37a2d
MD5 b7d98ec7e05a1f44fd3fa47b9af92241
BLAKE2b-256 cd6e606ac32c472c257c476e491ff4fe3bb9cf76589864ce06f6a4bb7687341a

See more details on using hashes here.

File details

Details for the file is_it_slop-0.4.0-cp313-cp313-win_amd64.whl.

File metadata

File hashes

Hashes for is_it_slop-0.4.0-cp313-cp313-win_amd64.whl
Algorithm Hash digest
SHA256 e6820c8475307cb481dd7767fbb17953c19e0e74a706f36dc16bbda18300d482
MD5 91389d139fd016bf9e0e973b1683deae
BLAKE2b-256 13a419104e10eb540271ff1d13ed5c052ac6e980208c65a73fb46a4d18a11dca

See more details on using hashes here.

File details

Details for the file is_it_slop-0.4.0-cp313-cp313-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for is_it_slop-0.4.0-cp313-cp313-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 978945346f228585d478b5033f6a7235178c25ff142b8191bd7fb9521ec8ee58
MD5 d9a6cfefbb2dd669e82cf46bc2de4425
BLAKE2b-256 181bde5e604fb6e5e453793bfdf955ecf5ba732eb6bbd74629a4a22b75f798b0

See more details on using hashes here.

File details

Details for the file is_it_slop-0.4.0-cp313-cp313-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for is_it_slop-0.4.0-cp313-cp313-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 329cf0cd77158d3dde0b86ebbe12a65c555e78dd7569595a3ce91d7502ebfd51
MD5 6f4f0a21bc5ea9889c48b0b87e003ee8
BLAKE2b-256 b60e0998201c42cfe23b5541c0aa01c533a9a70cdbcb0e6c00d25760a718f880

See more details on using hashes here.

File details

Details for the file is_it_slop-0.4.0-cp313-cp313-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for is_it_slop-0.4.0-cp313-cp313-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 2a5e08a9db7f3d8ef4c0ebd25454aca4ab8c55f75f349332b6b01e6edf764f4c
MD5 741860e3c98f3a5198e487e81fbab8d2
BLAKE2b-256 a989f3b88f520744684113fec6f07f16668724ffb9fb8ab5c8c8a81069270cfc

See more details on using hashes here.

File details

Details for the file is_it_slop-0.4.0-cp313-cp313-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for is_it_slop-0.4.0-cp313-cp313-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 e84bceb5713f7ff97106064393be36903a8a81b4b1b4ac132b43f1dbd9272f32
MD5 9069747b8bfb646df11b11a64c6d9053
BLAKE2b-256 331ad7fc398f464f499244e3b417393149eb1e8685e6f797adcdddb62ec63693

See more details on using hashes here.

File details

Details for the file is_it_slop-0.4.0-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for is_it_slop-0.4.0-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 40f863cd440120392bb9786be53a1316dc9d46280d3dff5b16133626e6d97e18
MD5 589d5480aaa889cf52b229551437e2a5
BLAKE2b-256 09778e9538bbf549c306572f62bbf2010fc776a2bca61bf33441a09502ff09ef

See more details on using hashes here.

File details

Details for the file is_it_slop-0.4.0-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for is_it_slop-0.4.0-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 b4d419d606f6444a73143a0cb14a6ec9d78eab3f1b90d6770855dadb787930b8
MD5 c43f3e4ce177ce39b19447cacba03c59
BLAKE2b-256 7a86b6a4c0bb29540c687be09485391ba4063d5fc95f0591e5ec470568272a41

See more details on using hashes here.

File details

Details for the file is_it_slop-0.4.0-cp312-cp312-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for is_it_slop-0.4.0-cp312-cp312-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 c317b537569555aa962ac0a37acf9fcdb50f68f549a8132f03959e49b6891a9a
MD5 8abf3e37739bf7636c434ac189458c7d
BLAKE2b-256 d6291c4d938520d6754a556c49d9a364019516f19c4ab49e5585833e930bcfbe

See more details on using hashes here.

File details

Details for the file is_it_slop-0.4.0-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for is_it_slop-0.4.0-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f906906cb33a37b1ea81b3a5d55aafabeb30cc674dcf49c9331714b28818abd7
MD5 c0ca780fbfc725430ff62b98ca6088d6
BLAKE2b-256 202ded762aaa42d8c8dd2b2e3a758591a845b463dcb8f1ecf9fcfcc692228007

See more details on using hashes here.

File details

Details for the file is_it_slop-0.4.0-cp312-cp312-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for is_it_slop-0.4.0-cp312-cp312-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 36c466802594f34addee392b58dcd67c8f6531496bcab402669789d2d6611b22
MD5 f0e33a13dd89fdd97d2ea1a97ab69c9b
BLAKE2b-256 14937d6bef6ae02f66ffc667e51168fd62a32fcd1d80c3b6bafeb920540db487

See more details on using hashes here.

File details

Details for the file is_it_slop-0.4.0-cp311-cp311-win_amd64.whl.

File metadata

File hashes

Hashes for is_it_slop-0.4.0-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 ba0c8ead8d7ebeb63f7db5d12d3a024fa86aec6f4689ea434309e3d339c20032
MD5 68d6c0dfc075cfb593acac9197c2ca2f
BLAKE2b-256 939c14197da1f76c679ef3b9e3df317647b607a06e45efeb9d7a7690efcf7b11

See more details on using hashes here.

File details

Details for the file is_it_slop-0.4.0-cp311-cp311-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for is_it_slop-0.4.0-cp311-cp311-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 389a7514437a8106525ce38f66fdc58b835de6ccea9b6ea90e267e2ebcf727ba
MD5 b5b4dadc1a182701a964476fb503581c
BLAKE2b-256 16f873eacb48dde86110febd648840f8fadb7631a5453526b9e0935bcfa3fec8

See more details on using hashes here.

File details

Details for the file is_it_slop-0.4.0-cp311-cp311-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for is_it_slop-0.4.0-cp311-cp311-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 0ff71665087db6a85b338ed14c9c768feeca26e9408881574e02cb75b1864f77
MD5 169e5efcd375452ad8881131464c866c
BLAKE2b-256 84d27bcbc08a052b9c94011a5bb94d1ada78a3a09e2db9c3bd38e239e37a72f6

See more details on using hashes here.

File details

Details for the file is_it_slop-0.4.0-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for is_it_slop-0.4.0-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 41c4d80496280276bc191dce7d69cf2345ac6d1020acaece51cd5b3b6f814193
MD5 2e8b1a85212cb9339941f40724080c85
BLAKE2b-256 f6a6c341eaed63c21fe12ddfc6d1cd6587362fa76a28cd6d0c6f923d58a64692

See more details on using hashes here.

File details

Details for the file is_it_slop-0.4.0-cp311-cp311-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for is_it_slop-0.4.0-cp311-cp311-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 20fb66a08d5454c593b6812e14d4178e578fd133295593853445bf2227b8a4cc
MD5 4fa9fc8d034e5a8ac4f206dfbd860eeb
BLAKE2b-256 9fe8f03cfc612d65023ef441cf07c4d27306aec1124db3a1792c051536cbc5ee

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page