The 'DetectiveAI' library provides a robust AI-generated text detection service. It leverages multiple advanced analysis techniques to assess the likelihood of a given text being AI-generated. The service provides a probability score between 0 and 1, with 0 indicating a lower probability and 1 indicating a higher probability of AI authorship.
$ dotnet add package DetectiveAIThis release marks the initial public availability of the DetectiveAI. This version establishes a solid foundation for detecting AI-generated text, focusing on foundational linguistic analysis.
Core Analysis Engine: The library now includes a core engine for analyzing text based on several linguistic characteristics frequently associated with AI-generated content. This initial version focuses on readily identifiable patterns.
Basic Linguistic Analysis: The AnalyzeText method now performs these fundamental checks:
Error Handling: Robust error handling ensures the library functions reliably even with potentially malformed or problematic input. If an error occurs during analysis, the AnalyzeText method will return 0 and log an appropriate message to the console.
Probability-Based Scoring: The AnalyzeText method returns a decimal value between 0 and 1 representing the probability that the input text is AI-generated. A score closer to 1 suggests a higher probability of AI authorship. A score close to 0 suggests a lower probability.
using DetectiveAI;
// Create an instance of the AI Checker.
DetectiveAI.CheckAI detector = new DetectiveAI.CheckAI();
// Example usage - analyzing a piece of text
string inputText = "This is a sample piece of text to be analyzed. We believe that AI-generated text may overuse certain conjunctions, such as 'and' and 'but'.";
decimal score = detector.AnalyzeText(inputText);
Console.WriteLine($"AI likelihood score: {score}");