Skip to content

ShaneM123/ai_detector

Repository files navigation

Contributors Forks Stargazers Issues project_license LinkedIn


Logo

AI Detector

A knn algorithm based solution to help identify and classify AI written emails or text
View Demo · Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgments

About The Project

AI Detector Screen Shot

A knn algorithm based solution to help identify and classify AI written emails or text

(back to top)

Built With

  • Rust

(back to top)

Getting Started

This guide assumes you are using Linux and have Rust installed.

Prerequisite

This guide assumes you are using Linux and have git, Rust and openssl installed or are capable of installing them

How to Run Locally

  1. Clone the repo
    git clone https://github.com/ShaneM123/ai_detector.git
  2. you will need the enron_email dataset (or similar). currently it can be found here: https://huggingface.co/datasets/corbt/enron-emails/tree/main
  3. create keys using openssh
    openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout test_server.key -out test_server.crt
  4. run the app locally
    cargo run
  5. open your browser and go to localhost:8080

(back to top)

Usage

This app uses knn and 2 data sets. simply copy and paste an email into the input and submit. The analysis will show where your email is in relation to the emails in the dataset. With the correct K value and datasets, KNN is quite accurate at identifying which group the input data belongs to.

(back to top)

Roadmap

  • Add Styling to Frontend
  • Allow users to set k value
  • Allow users to adjust datasets
  • Implement Lempel-Ziv Jaccard Distance

See the open issues for a full list of proposed features (and known issues).

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

Top contributors:

contrib.rocks image

License

Distributed under the project_license. See LICENSE.txt for more information.

(back to top)

Contact

Shane Moloney - aidetector.eagle209@passmail.net

Project Link: https://github.com/ShaneM123/ai_detector

(back to top)

Acknowledgments

(back to top)

About

detects ai emails

Resources

License

Stars

3 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors