Skip to main content
Prompts JavaScript Text Analysis Tool Builder

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