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
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!
- Fork this repository
- 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:
- Open the settings for your Xcode project.
- Look for the “Localizations” section. It may be under the “Info”
- Click the “+” icon then choose the language you want to add support for. This will create a new
Localizable.strings
in GPTDetectorSwiftUI/App/L10n
- Add the translations for each key-value pair.
- Run the app
- Make sure you have this app once.
- Open a pull request
Packages
- Dependency Injection
- Image Cropper
- Resource Generator