{"id":27789145,"url":"https://github.com/harishri2002/verbose-ai","last_synced_at":"2025-07-04T18:41:13.104Z","repository":{"id":288780608,"uuid":"969153389","full_name":"Harishri2002/Verbose-AI","owner":"Harishri2002","description":"Verbose AI is a Dart-based utility that uses AI to automatically standardize, correct grammar and spelling, and rewrite casual or broken English into professionally polished text using Google's gemma-2-2b-it model via Hugging Face Inference API.","archived":false,"fork":false,"pushed_at":"2025-04-27T10:18:37.000Z","size":305,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-27T11:29:10.179Z","etag":null,"topics":["ai","android","desktop","ios","text-gen","web"],"latest_commit_sha":null,"homepage":"https://verbose-ai.vercel.app","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Harishri2002.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2025-04-19T14:06:45.000Z","updated_at":"2025-04-27T10:21:04.000Z","dependencies_parsed_at":"2025-04-19T18:34:41.432Z","dependency_job_id":"2f553109-2df3-41b8-afe3-f4f39afa701c","html_url":"https://github.com/Harishri2002/Verbose-AI","commit_stats":null,"previous_names":["harishri2002/verbose-ai"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Harishri2002%2FVerbose-AI","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Harishri2002%2FVerbose-AI/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Harishri2002%2FVerbose-AI/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Harishri2002%2FVerbose-AI/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Harishri2002","download_url":"https://codeload.github.com/Harishri2002/Verbose-AI/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251754512,"owners_count":21638522,"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":["ai","android","desktop","ios","text-gen","web"],"created_at":"2025-04-30T17:46:21.800Z","updated_at":"2025-04-30T17:46:22.545Z","avatar_url":"https://github.com/Harishri2002.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🗣️ Verbose AI – Professional Text Standardization\n\n**Verbose AI** is a Dart-based utility that uses AI to automatically standardize, correct grammar and spelling, and rewrite casual or broken English into professionally polished text using Google's `gemma-2-2b-it` model via Hugging Face Inference API.\n\n---\n\n## ✨ Features\n\n- ✅ Fixes grammar, spelling, and sentence structure\n- ✅ Rewrites text in a formal, professional tone\n- ✅ Uses state-of-the-art open-source LLM (Gemma 2B IT)\n- ✅ Fallback mechanism if the API fails\n- ✅ Easy to plug into any Dart / Flutter project\n\n---\n\n## 🚀 How It Works\n\nThe app sends user input to the Hugging Face **Chat Completions API**, using Google's instruction-tuned Gemma model. The model rewrites the text professionally and returns the standardized output.\n\n---\n\n## 🧠 Powered By\n\n- 🧩 **Model**: [`google/gemma-2-2b-it`](https://huggingface.co/google/gemma-2-2b-it)\n- 🔗 **API**: Hugging Face Inference Chat Completions Endpoint\n- 🧰 **Language**: Dart\n\n---\n\n## 📦 Installation\n\nAdd the following dependencies to your `pubspec.yaml`:\n\n```yaml\ndependencies:\n  http: ^0.13.6\n```\n\n---\n\n## 🛠️ Setup\n\n1. Create an account at [Hugging Face](https://huggingface.co/join).\n2. Generate a free API token at [https://huggingface.co/settings/tokens](https://huggingface.co/settings/tokens).\n3. Replace the placeholder API key in `TextService` with your own:\n\n```dart\nfinal String apiKey = \"hf_YourTokenHere\";\n```\n\n---\n\n## 💡 Example Usage\n\n```dart\nfinal service = TextService();\n\nvoid main() async {\n  String input = \"how are u dongd aht bro\";\n  String result = await service.standardizeText(input);\n  print(result); // Output: \"How are you doing that, brother?\" (Professionally rephrased)\n}\n```\n\n---\n\n## 🧰 API Details\n\n**Endpoint:**\n```\nPOST https://api-inference.huggingface.co/chat/completions\n```\n\n**Payload:**\n```json\n{\n  \"model\": \"google/gemma-2-2b-it\",\n  \"messages\": [\n    {\"role\": \"system\", \"content\": \"You are a professional editor...\"},\n    {\"role\": \"user\", \"content\": \"raw input text\"}\n  ],\n  \"temperature\": 0.3,\n  \"max_tokens\": 150\n}\n```\n\n---\n\n## 🛡️ Fallback Behavior\n\nIf the Hugging Face API fails (e.g. network error or quota exceeded), the app gracefully falls back to a basic standardization method using simple string replacements.\n\n---\n\n## 📝 License\n\nMIT License. Feel free to modify, use, and distribute.\n\n---\n\n## 👨‍💻 Author\n\nMade with ❤️ by [Harishri](https://github.com/Harishri2002)\n\n---\n\n```\n\nLet me know if you want to include screenshots, a badge (e.g. Dart Pub), or convert this into a Flutter UI version too!","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharishri2002%2Fverbose-ai","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharishri2002%2Fverbose-ai","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharishri2002%2Fverbose-ai/lists"}