model coding user risk: low
JavaScript Text Analysis Tool Builder
Build a comprehensive text analysis tool using HTML5, CSS3, and JavaScript with a clean interface including text input and results dashboard. Implement features such as word/charac…
PROMPT
Build a comprehensive text analysis tool using HTML5, CSS3, and JavaScript. Create a clean interface with text input area and results dashboard. Implement word count, character count, and reading time estimation. Add readability scoring using multiple algorithms (Flesch-Kincaid, SMOG, Coleman-Liau). Include keyword density analysis with visualization. Implement sentiment analysis with emotional tone detection. Add grammar and spelling checking with suggestions. Include text comparison functionality for similarity detection. Support multiple languages with automatic detection. Add export functionality for analysis reports. Implement text formatting and cleaning tools.
EXPECTED OUTPUT
- Format
- html
SUCCESS CRITERIA
- Build a comprehensive text analysis tool using HTML5, CSS3, and JavaScript.
- Create a clean interface with text input area and results dashboard.
- Implement word count, character count, and reading time estimation.
- Add readability scoring using multiple algorithms (Flesch-Kincaid, SMOG, Coleman-Liau).
- Include keyword density analysis with visualization.
- Implement sentiment analysis with emotional tone detection.
- Add grammar and spelling checking with suggestions.
- Include text comparison functionality for similarity detection.
- Support multiple languages with automatic detection.
- Add export functionality for analysis reports.
- Implement text formatting and cleaning tools.
FAILURE MODES
- Extensive feature list may lead to incomplete or partial implementations.
- Advanced features like sentiment analysis, grammar checking, and multi-language support are challenging without external libraries in pure client-side JS.
- Lack of details on algorithms or libraries may result in inaccurate or simplified implementations.
CAVEATS
- Missing context
-
- Permission for external libraries (e.g., for NLP tasks like sentiment or grammar).
- Project structure (single HTML file or multi-file app).
- UI details like responsiveness, themes, or framework (e.g., vanilla JS vs. React).
- Scope of multiple languages supported.
- Performance or browser compatibility requirements.
- Ambiguities
-
- Does not specify if external libraries or APIs are allowed for features like sentiment analysis, grammar checking, or language detection.
- Unclear visualization type for keyword density (e.g., charts, word clouds).
- No details on text comparison algorithm (e.g., cosine similarity, Levenshtein).
- Undefined export formats for reports (e.g., PDF, JSON, CSV).
QUALITY
- OVERALL
- 0.70
- CLARITY
- 0.90
- SPECIFICITY
- 0.80
- REUSABILITY
- 0.30
- COMPLETENESS
- 0.70
IMPROVEMENT SUGGESTIONS
- Add 'Use only vanilla HTML/CSS/JS, no external libraries' or list allowed ones to clarify implementation constraints.
- Specify output format: 'Provide complete code as a single HTML file with embedded CSS/JS.'
- Include formulas or pseudocode for key calculations like reading time or readability scores.
- Define UI elements more precisely: 'Include buttons for each analysis, tabs for results, responsive design.'
- Make reusable by templating: 'Build a text analysis tool implementing [list of features]: [features].'
USAGE
Copy the prompt above and paste it into your AI of choice — Claude, ChatGPT, Gemini, or anywhere else you're working. Replace any placeholder sections with your own context, then ask for the output.
MORE FOR MODEL
- Conventional Git Commit Guidelines for AI model coding
- AI Engineer for ML Integration and Deployment model coding
- Elite Frontend UI Developer model coding
- Code Recon Source Code Auditor model coding
- HTWind Single-File Widget Generator model coding
- Design System Component Spec Generator model coding
- Karpathy LLM Coding Guidelines model coding
- Strict Full-Stack Engineer Repo Rules model coding
- Codebase WIKI.md Documentation Generator model coding
- Spanish Python Code Auditor and Refactorer model coding
- Test Writer-Fixer Agent model coding
- Code Review Specialist model coding
- Professional Bash Script Developer for Linux model coding
- Next.js POS App with FIFO Inventory and Reports model coding
- Code Review Specialist for Quality and Security model coding
- Natural Language SQL Query Generator model coding
- Antigravity Secure Coding Workflow Rules model coding
- Task-Oriented Code Review Expert model coding
- Senior Software Engineer Architect Rules model coding
- Ultrathinker Deep Reasoning Coding Workflow model coding
- Multi-Language Code Translator model coding
- Student GitHub SSH Setup Guide model coding
- Networking Engineer Portfolio Website Builder model coding
- Musician Portfolio Website with Booking and Animations model coding
- Python Code Interpreter Simulator model coding