TextFlowViz is an innovative web application that turns your text into insightful visual representations. With a simple text input, you can generate word frequency charts and diagrams that help analyze and understand the content better. Whether you're analyzing blog posts, articles, or any written text, TextFlowViz can visually summarize the most frequent words and even create flow diagrams based on your input.
In TextFlowViz, we use Kadane's Algorithm to find the word with the highest frequency in the provided text.
Kadane's Algorithm is typically used to find the maximum sum subarray in an array of numbers, but we adapted the same concept for word frequency analysis.
- Text Splitting: We split the text into individual words.
- Frequency Calculation: We calculate how many times each word appears.
- Kadane's Adaptation: We apply Kadane's approach to track the word with the highest frequency, ensuring the most frequent word is efficiently found in a single pass through the word frequencies.
- Display: The most frequent word is then displayed in the word frequency chart.
This efficient approach allows us to quickly determine and highlight the most common word in any given text.
Generate a bar chart to visualize the frequency of words in the given text.
Transform your text into a flow diagram that gives a visual summary of your content.
- Text Input: Simply enter any text, and the app does the magic!
- Word Frequency Analysis: See which words appear most in your text with an intuitive bar chart.
- Dynamic Flow Diagrams: Generate flow diagrams representing the structure of your text.
- Interactive & Responsive: Fully responsive web app that works on all screen sizes.
- Frontend: React.js, Chart.js
- Backend: Node.js (Optional for future features)
- Libraries:
mermaid.js
,chart.js
- CSS: Styled-components / CSS modules for styling
- Step 1: Input your text into the provided text box.
- Step 2: Click on the "Generate Diagram" button to visualize the flow diagram of your text.
- Step 3: Click on "Generate Stats" to see a word frequency bar chart representing your text's most common words.
We love contributions! If you want to improve or add new features, feel free to fork the repository and submit a pull request.
- Fork the repo
- Create a new branch
- Make your changes
- Commit your changes and push to your fork
- Submit a pull request
This project is licensed under the MIT License - see the LICENSE file for details.
For any queries, feel free to reach out to me via:
- Email: vibhudixit88@gmail.com
- LinkedIn: Vibhu Dixit