DetectiveAI 1.0.0

dotnet add package DetectiveAI --version 1.0.0                
NuGet\Install-Package DetectiveAI -Version 1.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DetectiveAI" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DetectiveAI --version 1.0.0                
#r "nuget: DetectiveAI, 1.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install DetectiveAI as a Cake Addin
#addin nuget:?package=DetectiveAI&version=1.0.0

// Install DetectiveAI as a Cake Tool
#tool nuget:?package=DetectiveAI&version=1.0.0                

DetectiveAI: AI Checker Library - Version 1.0.0.0

This 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.

Key Features and Improvements:

  • 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:

    • Sentence Structure: Examines the average length of sentences to assess potential deviations from typical human writing patterns.
    • Word Diversity: Calculates the ratio of unique words to total words, a measure of vocabulary richness. Lower ratios may suggest AI-generated text.
    • Suspicious Phrase Detection: Identifies the presence of common phrases often associated with AI-generated content (e.g., "in my opinion," "I believe").
  • 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.

Usage Example:

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}");
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net5.0-windows7.0 is compatible.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp3.1 is compatible. 
.NET Framework net461 is compatible.  net462 is compatible.  net463 was computed.  net47 was computed.  net471 was computed.  net472 is compatible.  net48 was computed.  net481 was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETCoreApp 3.1

    • No dependencies.
  • .NETFramework 4.6.1

    • No dependencies.
  • .NETFramework 4.6.2

    • No dependencies.
  • .NETFramework 4.7.2

    • No dependencies.
  • net5.0-windows7.0

    • No dependencies.
  • net6.0

    • No dependencies.
  • net7.0

    • No dependencies.
  • net8.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 29 11/27/2024

Initial release of the DetectiveAI.  This version includes basic analysis techniques for assessing potential AI-generated text. Includes methods for analyzing sentence structure, word diversity, and the presence of suspicious phrases.  Further enhancements will include more sophisticated NLP techniques for more robust AI detection.