{"id":24278479,"url":"https://github.com/gabsedits/ai-detector","last_synced_at":"2025-07-14T06:02:53.254Z","repository":{"id":271455541,"uuid":"913403761","full_name":"GabsEdits/ai-detector","owner":"GabsEdits","description":"Check if an text is AI generated","archived":false,"fork":false,"pushed_at":"2025-02-25T21:45:00.000Z","size":27,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-05T12:19:03.766Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GabsEdits.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-07T16:08:07.000Z","updated_at":"2025-02-25T21:45:03.000Z","dependencies_parsed_at":"2025-01-07T21:37:22.236Z","dependency_job_id":"a64a49da-6b9b-491e-8c43-fe492f575281","html_url":"https://github.com/GabsEdits/ai-detector","commit_stats":null,"previous_names":["gabsedits/ai-detector"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/GabsEdits/ai-detector","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GabsEdits%2Fai-detector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GabsEdits%2Fai-detector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GabsEdits%2Fai-detector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GabsEdits%2Fai-detector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GabsEdits","download_url":"https://codeload.github.com/GabsEdits/ai-detector/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GabsEdits%2Fai-detector/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265248588,"owners_count":23734268,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-16T00:48:42.148Z","updated_at":"2025-07-14T06:02:53.230Z","avatar_url":"https://github.com/GabsEdits.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ch1\u003eAI Detector\u003c/h1\u003e\n  \u003cp\u003eAn API (with a webapp) that detects if a text is AI-generated\u003c/p\u003e\n\u003c/div\u003e\n\n## Algorithm\n\nThe algorithm is based on a comprehensive analysis of the text, including\ncharacter count, word count, sentence count, unique word count, and average\nsentence length. It calculates word frequency, identifies the most used word,\nand evaluates sentence lengths to determine mean and variance. The type-token\nratio is computed to assess lexical diversity. Additionally, the algorithm\ngenerates bigrams and trigrams to analyze word pairings and triplets. Heuristic\npatterns are checked to identify common AI-generated text phrases. The AI\nprobability is adjusted based on sentence complexity and repetition checks,\nresulting in a final AI probability score.\n\n## API\n\nThe API is available at\n[ai-detector-api.deno.dev](https://ai-detector-api.deno.dev).\n\n### Installation\n\n(After cloning the repository, and installing Deno, and being in the root\ndirectory of the project)\n\n### Running the API\n\n```bash\ndeno run -N api/mod.ts\n```\n\n### Endpoints\n\n\u003e ![NOTE] Replace `:text` with the text you want to analyze.\n\n- `GET\n\n### Example\n\n```bash\ncurl https://ai-detector-api.deno.dev/This%20is%20an%20example%20text%20to%20analyze%20using%20the%20API\n```\n\n## Webapp\n\nThe webapp is available at [ai-detector.gxbs.dev](https://ai-detector.gxbs.dev),\nand is built using [Fresh](https://fresh.deno.dev).\n\n### Installation\n\n(After cloning the repository, and installing Deno, and being in the root\ndirectory of the project)\n\n```\ndeno i\n```\n\n### Running the Webapp\n\nDevelopment Server (with auto-reload):\n\n```bash\ndeno run start\n```\n\nBuild:\n\n```bash\ndeno run build\n```\n\n## License\n\nThis project is open source and available under the [MIT License](LICENSE.txt).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabsedits%2Fai-detector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgabsedits%2Fai-detector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgabsedits%2Fai-detector/lists"}