Skip to content

SwiftUI implementation of GPT Detector. Calculates the perplexity and burstiness of a given text to determine whether it was generated by a large language model or not.

License

Notifications You must be signed in to change notification settings

cem256/AI-Detector-iOS

Repository files navigation

AI Detector

SwiftUI implementation of GPT Detector. Calculates the perplexity and burstiness of a given text to determine whether it was generated by a large language model or not.

Available on

App Store

Preview

Features

  • Analyze plain text.
  • Analyze text by selecting a photo from the photo library using OCR.
  • Analyze text by utilizing the phone's camera with OCR.

How results are calculated?

  • Large language models typically generate text that is less complex and random compared to human-created content. The level of randomness and complexity can be analyzed to differentiate between AI-generated and human-created content.

What are the limitations of the AI Detector?

  • Current version of the AI Detector is optimized for texts written in English. So, using text in other languages may result in inaccurate results.
  • Texts written by children or non-native English speakers may be misclassified because they often produce text that is less random and complex.
  • As AI models advance, they become better at generating text that looks like human writing which affects the reliability of the AI Detector. Therefore, it's not advised to solely rely on the detector's results for decision-making.

Architecture

Developed with MVVM

Project Structure

  • "Core" folder contains application-agnostic code that can be reused in other projects.
  • "Feature" folder represents the app's feature set.
  • "App" folder holds files specific to this particular application.

Contributing

Translation

You can help translate this app to other languages!

  1. Fork this repository
  2. Choose one
    • Add missing translations in existing languages
    • Improve translations in existing languages: Update desired languages Localizable.strings in GPTDetectorSwiftUI/App/L10n
    • Add new languages:
      1. Open the settings for your Xcode project.
      2. Look for the “Localizations” section. It may be under the “Info”
      3. Click the “+” icon then choose the language you want to add support for. This will create a new Localizable.strings in GPTDetectorSwiftUI/App/L10n
      4. Add the translations for each key-value pair.
  3. Run the app
    1. Make sure you have this app once.
  4. Open a pull request

Packages

About

SwiftUI implementation of GPT Detector. Calculates the perplexity and burstiness of a given text to determine whether it was generated by a large language model or not.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages